note 86887 rejected from function.mysql-query by felipe
| From: | felipe@php.net | Date: | Sun, 09 Nov 2008 16:54:15 +0000 |
| Subject: | note 86887 rejected from function.mysql-query by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146318@lists.php.net to get a copy of this message | ||
Note Submitter: azuajeana at yahoo dot com
----
I have a question.
I trying delete from multiples tables, so I using the next sentence
$sql = "delete from table1 where cod=1 ; delete from table2 where cod=1; delete from table3
where cod=1";
$result = mysql_query($sql);
So, I got a sintaxys error message, but if I write the same on the sql editor of php myAdmin, it
executed fine.
Why can't I execute it in php???