Re: multiple queries in a row

From: Date: Wed, 03 Jul 2002 02:48:09 +0000
Subject: Re: multiple queries in a row
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20284@lists.php.net to get a copy of this message
On Wednesday 03 July 2002 04:36, Casey Allen Shobe wrote: > On Thursday 27 June 2002 02:19 pm, Mattia wrote: > > I would like to make multiple queries in a single mysql_query(...) > > statement!! Like in the mysql client given with the distribution, > > separated by a ; or a \g !!! > > How can I??? > > You should be able to use it exactly the same. > > $foo = mysql_query(' > select something > from somewhere; > > select something_else > from somewhere_else; > ', $link_id); IIRC php only allows you to pass a single query at a time to mysql. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Every program is a part of some other program, and rarely fits. */

« previous php.db (#20284) next »