Guest User

Untitled

a guest
Jan 22nd, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. if ($result) {
  2.  
  3.   // create a new form and then put the results
  4.   // indto a table.
  5.   echo "<form method='post' action='delete.php'>";
  6.   echo "<table cellspacing='0' cellpadding='10'>
  7.  
  8.                <th width='30%'>Source (From)</th>
  9.                <th width='20%'>Destination (To)</th>
  10.                <th width='15%'>Delete</th>
  11.                <th width='15%'>Modify</th>
  12.                ";
  13.  
  14.  
  15.   while ($row = $result->fetch_object()) {
  16.  
  17.                 $source = $row->source;
  18.                 $destination = $row->destination;
  19.                 $id = $row->id;
  20.         echo "<tr>
  21.                <td>$source</td>
  22.                <td>$destination</td>
  23.                <td><input type='checkbox' name='checkbox[]' id='checkbox[]'  value=$id /></td>
  24.            </tr>";
  25.   }
  26.  
  27.         echo "</table><p><input id='delete' type='submit' class='button' name='delete_user' value='Delete'/></p></form>";
  28. }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment