You are here: Re: Multi-query version of mysql_query??? « PHP Programming Language « IT news, forums, messages
Re: Multi-query version of mysql_query???

Posted by Bruce A. Julseth on 04/19/07 02:27

"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1176944911.175221.52950@o5g2000hsb.googlegroups.com...
> 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>
>

Thank you. That looks like the function I was looking for...

Bruce

 

Navigation:

[Reply to this 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

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