note 89389 added to function.mysql-query
| From: | Erick at osu1 dot php dot net | Date: | Thu, 05 Mar 2009 16:29:32 +0000 |
| Subject: | note 89389 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151525@lists.php.net to get a copy of this message | ||
In response to Andy about multiple queries... bad idea. The first query that has data which
contains a semi-colon, it will blow up. You're better off creating a wrapper function that
takes an array of queries as an arg. That said, even that is questionable because in most
circumstances you'll want to know the result of each query and returning an array of responses
just isn't practical.
----
Server IP: 69.147.83.197
Probable Submitter: 68.187.88.40
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- https://master.php.net/note/edit/89389
Del: integrated -- https://master.php.net/note/delete/89389/integrated
Del: useless -- https://master.php.net/note/delete/89389/useless
Del: bad code -- https://master.php.net/note/delete/89389/bad+code
Del: spam -- https://master.php.net/note/delete/89389/spam
Del: non-english -- https://master.php.net/note/delete/89389/non-english
Del: in docs -- https://master.php.net/note/delete/89389/in+docs
Del: other reasons-- https://master.php.net/note/delete/89389
Reject -- https://master.php.net/note/reject/89389
Search -- https://master.php.net/manage/user-notes.php