<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>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)