note 86887 added to function.mysql-query
| From: | azuajeana at yahoo dot com | Date: | Sat, 08 Nov 2008 14:47:01 +0000 |
| Subject: | note 86887 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146304@lists.php.net to get a copy of this message | ||
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???
----
Server IP: 200.6.154.201
Probable Submitter: 201.243.60.131
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- https://master.php.net/note/edit/86887
Del: integrated -- https://master.php.net/note/delete/86887/integrated
Del: useless -- https://master.php.net/note/delete/86887/useless
Del: bad code -- https://master.php.net/note/delete/86887/bad+code
Del: spam -- https://master.php.net/note/delete/86887/spam
Del: non-english -- https://master.php.net/note/delete/86887/non-english
Del: in docs -- https://master.php.net/note/delete/86887/in+docs
Del: other reasons-- https://master.php.net/note/delete/86887
Reject -- https://master.php.net/note/reject/86887
Search -- https://master.php.net/manage/user-notes.php