Click here to Skip to main content
15,920,383 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<html>
<body bgcolor="green" text="white">
<a href="form.html">ADD </a>

<table border="1"> 
<tr>
<th>emp_code</th>
<th>name</th>
<th>dept_id</th>
<th>action</th>
</tr>
$connection = mysql_connect("192.168.1.7","hari","hari");
mysql_select_db("hari");

$result = mysql_query("SELECT * FROM emp");

while($row=mysql_fetch_array($result,MYSQL_ASSOC))
{
?>
<tr>
<td><?php echo $row["emp_code"] ??></td>
<td><?php echo $row["first_name"] ??></td>
<td><?php echo $row["dept_id"] ??></td>
<td> <a href="edit.php?emp_id = ">" ">edit</a> / <a href="delete.php?emp_id = ">" ">delete</a> </td>
</tr>
<?php } ??>
</table>   

</body>
</html>
Posted
Updated 9-Oct-11 20:19pm
v3

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900