Re: howto run sql script with php?

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

 



On 13 June 2010 11:05, Stephan Ebelt <ste@xxxxxxxxxxxxxxx> wrote:
> Hello,
>
> I am trying to run a .sql script produced with mysql-dump from a php script but
> failed to find a rudimentary robust solution yet.
>
> mysql_query() can only run one query at a time. Thus its necessary to somehow
> parse the input file and separate the queries... which is difficult since the
> syntax can be quite complex.
>

Use mysqli - it supports running multiple queries at once.

Regards
Peter


-- 
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
</hype>

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux