Reply to Re: Multi-query version of mysql_query???

Your name:

Reply:


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>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация