[PHP] Send multiple SQL staments in one query
Hi, I can't send multiple sql staments in one query, i always get an error saying that the sentece is incorrect, i thorw the sentece in a mysql console and works fine, i'm sepraing sentences with ; i try to separe using ;\n or ;\r\n but don't work Anyone can help me? :-) Miguel López Sánchez Programador Voz +34 902 014 945 E-mail: [EMAIL PROTECTED] Dinaweb Networks s.l. Rúa das Orfas 27 15703 Santiago de Compostela A Coruña Gz Sp ECC Voz +34 902 014 945 GMT+1 E-mail: [EMAIL PROTECTED] http://www.dinaweb.com http://www.dinahosting.com http://www.u-lo.com http://www.empregogalego.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send multiple SQL staments in one query
-- I can't send multiple sql staments in one query, i always get an error saying that the sentece is incorrect, i thorw the sentece in a mysql console and works fine, i'm sepraing sentences with ; i try to separe using ;\n or ;\r\n but don't work -- No, can't do it. Only one query per mysql_query() call. Not sure with other database interfaces, but it should be the same. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send multiple SQL staments in one query
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: [snip] No, can't do it. Only one query per mysql_query() call. Not sure with other database interfaces, but it should be the same. [/snip] Yes, you cannot do it in MySQL. But you can do it with others. (I think it was discussed before--about sql injection or something...) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php