|
Posted by ZeldorBlat on 04/19/07 01:08
On Apr 18, 9:04 pm, "Bruce A. Julseth" <bruceaj_nosp...@bellsouth.net>
wrote:
> Is there a multi-query version of mysql_query? I have my sql in a text file
> and it works great from the command line (mysql -u me -p <my.sql). my.sql
> had multiple lines of sql. I would now like to use that same file in my
> code, using fread and reading the complete file, then use this "Other"
> version of mysql_query with the contents of the this file as the argument.
>
> Thanks
>
> Bruce
I don't think the mysql extension has a function that can handle
multiple results. The mysqli extension does, however. See
mysqli_multi_query:
<http://www.php.net/mysqli_multi_query>
Navigation:
[Reply to this message]
|