Date: 06/13/02
- Next message: Jason Wong: "Re: [PHP-DB] problem with login script"
- Previous message: Srinivasan Ramakrishnan: "Re: [PHP-DB] Querying for MAX"
- In reply to: Bruce Vander Werf: "[PHP-DB] Executing Queries from a File Using PHP"
- Next in thread: Bruce Vander Werf: "RE: [PHP-DB] Executing Queries from a File Using PHP"
- Reply: Bruce Vander Werf: "RE: [PHP-DB] Executing Queries from a File Using PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday 13 June 2002 10:48, Bruce Vander Werf wrote:
> Is there a PHP routine anywhere to execute a series of MySQL queries in a
> text file?
>
> I know how to do this via the command line or by using PHPMyAdmin, but I
> need to do it in my own PHP script, and some of the queries span more than
> one line.
There are no built-in functions to do so. You need to read in the file
yourself, parse it appropriately then send the queries to mysql.
-- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Thank you for observing all safety precautions. */
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Jason Wong: "Re: [PHP-DB] problem with login script"
- Previous message: Srinivasan Ramakrishnan: "Re: [PHP-DB] Querying for MAX"
- In reply to: Bruce Vander Werf: "[PHP-DB] Executing Queries from a File Using PHP"
- Next in thread: Bruce Vander Werf: "RE: [PHP-DB] Executing Queries from a File Using PHP"
- Reply: Bruce Vander Werf: "RE: [PHP-DB] Executing Queries from a File Using PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

