User "Mr. Bungl3" <[EMAIL PROTECTED]> wrote:
> I'm trying to delete a some records from a table with checkboxes and then
i
> have this code:
>
$sql="DELETE FROM divx where id=".$del[$i]."";
Great idea, but when checkbox is checked, variable of it's name just becomes
true (doesn't get value of it's index anyway). So, I'd write it this way:
if ($del[$i]) {
$sql="DELETE FROM divx WHERE id='".$i."'";
mysql_query...;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php