$dell=explode("|",$_POST['dell']);
foreach($dell as $var)
{
$var=(int)$var;
mysql_query("DELETE FROM page WHERE id={$var} ");
mysql_query("DELETE FROM images WHERE id_page={$var} ");
mysql_query("DELETE FROM file WHERE id_page={$var} ");
}
Как их в 1 запрос обьединить?
Не получилось так
mysql_query("DELETE FROM page INNER JOIN images ON page.id=images.id_page WHERE page.id={$var} ");
и так
mysql_query("DELETE FROM page, images WHERE page.id={$var} AND images.id_page={$var} ");