Hi,
I have a system in place like an inbox which people can select a check box next to each message and then press delete which will delete the selected.
<input name="delete" type="checkbox" id="delete" value="<?php print $rows['id']; ?>" />
This is my code:
[PHP]
$delete = $_POST['delete'];
foreach ($delete as $deleted) {
$sql = mysql_query("DELETE * FROM messages WHERE id='$deleted'");
}
[/PHP]
This is not working though. Any ideas?
Cheers,
Adam