Hi, I can show data from the database using query
<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$a= $_POST["SiteId"];
mysql_select_db("abc", $con);
$result = mysql_query("SELECT * FROM sitepinfo
WHERE SiteId='$a'");
echo "<table cellpadding=2 cellspacing=2 width=100% >
<tr>
<th bgcolor=#5D9BCC>SiteID</th>
<th bgcolor=#5D9BCC>Maintained By</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td bgcolor=#FEE9A9>" . $row['SiteId'] . "</td>";
echo "<td bgcolor=#FEE9A9>" . $row['MaintainedBy'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
Now It shows for example 5 results , I want an Approve, Edit, and Delete button like image I Attached, please tell me how I can Show Edit, Update, and approve option with each record Shown. also Checkboxes for selection of record and then delete button in the bottom which delete only selected Records.
Thanks in advance...
Ayesha