How to show data from database in php

//……………………….show.php…………………………..\\

<table>
<tr>
<td align=”center”>EDIT DATA</td>
</tr>
<tr>
<td>
<table border=”1″>
<?
$con = mysql_connect(“localhost”,””,””);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}

mysql_select_db(“naogaon”, $con);
$order = “SELECT * FROM member”;
$result = mysql_query($order);
while ($row=mysql_fetch_array($result)){
echo (“<tr><td>$row[number]</td>”);
echo (“<td>$row[name]</td>”);
echo (“<td>$row[address]</td>”);
echo (“<td><a href=\”edit_form.php?id=$row[employees_number]\”>Edit</a></td></tr>”);
}
?>
</table>
</td>
</tr>
</table>

output:

About these ads
    • dgfhg
    • June 7th, 2012

    its not working

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: