help..problem with $query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux