By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,492 Members | 3,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,492 IT Pros & Developers. It's quick & easy.

Delete the particular fields in table(HTML)

savanm
P: 85
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($sql);
//$res = mysql_fetch_assoc($ress);
echo ("<table name='data' height='21' width='24' cellpadding='3' cellspacing='3' align='center' bordercolor='black' border='1' bgcolor='#45509C'>");
echo "<tr>";
echo"<td>Checkbox</td>";
echo "<td>UserName:</td>";
echo "<td>Password</td>";
echo "</tr>";
while($row = mysql_fetch_array($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
Mar 9 '07 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
I can only understand your need when you understand mine. I have asked you a couple of times before: enclose your code within code or php tags, but you do not seem to be willing to comply to this request! So be it.

moderator
Mar 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.