<?php mysql_connect("localhost","root","") or die(mysql_error()); mysql_select_db("Sample") or die(mysql_error()); $result = mysql_query("Select * from Test_Table") or die(mysql_error()); echo "<table border=\"1\" align=\"1\">"; echo "<tr><th>Test Name </th>"; echo "<th> Test Description </th>"; echo "<th> Test Phone Number </th>"; echo "<th> Insert </th>"; echo "<th> Edit </th>"; echo "<th> Delete </th></tr>"; while($row=mysql_fetch_array($result)) { echo "<tr><td>"; echo $row['TestName']; echo "</td>"; echo "<td>"; echo $row['TestDescription']; echo "</td>"; echo "<td>"; echo $row['TestPhoneNo']; echo "</td>"; echo "<td>"; echo "<a href='Insert.php'>Insert</a>"; echo "</td>"; echo "<td>"; echo "<a href="Update.php?Updates=$row['TestId']">Update</a>"; echo "</td>"; echo "<a href="Delete.php?id=$row['TestId']">Delete</a>"; echo "</td></tr>"; } echo "</table>" ?>
echo "<a href="Update.php?Updates=$row['TestId']">Update</a>";
echo '<a href="Update.php?Updates='.$row['TestId'].'>Update</a>';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)