funktioniert nicht, wat maach ich falsch?
Der Code:
<?php
if(strlen($delete)>1){
$db=mysql_connect("localhost","root","")
or die("<b>Connection to the server failed!</b>");
mysql_select_db("syscon")
or die("Connection to the database failed!</b>");
foreach ($_POST['person'] as $person.id => $id)
{
if (0 < strlen($where)) {
$where .= " OR (id=$id)";}
else {
$where = "(id=$person.id);
}
$queryl = "DELETE FROM person, reviewer WHERE $where";
mysql_query($queryl)
or die("<b>Query l failed!</br>");
} }
?>
Irgenwie komm ich nicht weiter