Re: help..problem with $query

From: Date: Wed, 23 Apr 2003 04:51:13 +0000
Subject: Re: help..problem with $query
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-27291@lists.php.net to get a copy of this message
You need to run multiple queries. do khac duy wrote:
hic...i got this problem : in php i use this code: ..... $query="insert into tablename('value1','value2')"; mysql_query($query); ..... this code run good,but now i want to run more than 1 line of code in $query variable,and i don't know how to...i use this code below ,and it not run : ........ $query="insert into tablename1('value1','value2');
       insert into tablename2('value3','value4')";
mysql_query($query); ......... i knew end of one line of query is ";" but it code not run well...hic...some body can help me this problem....how can i do
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.db (#27291) next »