Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($result) {
- // create a new form and then put the results
- // indto a table.
- echo "<form method='post' action='delete.php'>";
- echo "<table cellspacing='0' cellpadding='10'>
- <th width='30%'>Source (From)</th>
- <th width='20%'>Destination (To)</th>
- <th width='15%'>Delete</th>
- <th width='15%'>Modify</th>
- ";
- while ($row = $result->fetch_object()) {
- $source = $row->source;
- $destination = $row->destination;
- $id = $row->id;
- echo "<tr>
- <td>$source</td>
- <td>$destination</td>
- <td><input type='checkbox' name='checkbox[]' id='checkbox[]' value=$id /></td>
- </tr>";
- }
- echo "</table><p><input id='delete' type='submit' class='button' name='delete_user' value='Delete'/></p></form>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment