Hi all,
I have a problem to remove the particular fields in table...
I have shown my code below:
<?php
$sql = "select * from login";
$ress = mysql_query($sq l);
//$res = mysql_fetch_ass oc($ress);
echo ("<table name='data' height='21' width='24' cellpadding='3' cellspacing='3' align='center' bordercolor='bl ack' border='1' bgcolor='#45509 C'>");
echo "<tr>";
echo"<td>Checkb ox</td>";
echo "<td>UserNa me:</td>";
echo "<td>Passwo rd</td>";
echo "</tr>";
while($row = mysql_fetch_arr ay($ress))
{
echo "<tr>";
echo "<td><input type='checkbox' name='chkbox' align='center'/></td>";
echo ("<td >$row[user]</td>");
echo ("<td >$row[password]</td>");
echo "</tr>";
}
echo "</table>";
?>
For this i load database value into my html table...
my table also contain the checkbox
1)If am click this chckbox and click the delete button then i want to remove
the particular row..
Try to understand my need
Thanks
I have a problem to remove the particular fields in table...
I have shown my code below:
<?php
$sql = "select * from login";
$ress = mysql_query($sq l);
//$res = mysql_fetch_ass oc($ress);
echo ("<table name='data' height='21' width='24' cellpadding='3' cellspacing='3' align='center' bordercolor='bl ack' border='1' bgcolor='#45509 C'>");
echo "<tr>";
echo"<td>Checkb ox</td>";
echo "<td>UserNa me:</td>";
echo "<td>Passwo rd</td>";
echo "</tr>";
while($row = mysql_fetch_arr ay($ress))
{
echo "<tr>";
echo "<td><input type='checkbox' name='chkbox' align='center'/></td>";
echo ("<td >$row[user]</td>");
echo ("<td >$row[password]</td>");
echo "</tr>";
}
echo "</table>";
?>
For this i load database value into my html table...
my table also contain the checkbox
1)If am click this chckbox and click the delete button then i want to remove
the particular row..
Try to understand my need
Thanks
Comment