Delete the particular fields in table(HTML)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • savanm
    New Member
    • Oct 2006
    • 85

    #1

    Delete the particular fields in table(HTML)

    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
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    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

    Comment

    Working...