Hello
I have an SQL file which contains numerous queries which I use in batch mode to initialize the database.
I would like to run this file from PHP.
The problem is that the file contains numerous queries while mysql_query accepts a single query.
Is there a way to run a batch of queries from PHP?
I am talking about commands like:
drop table, create table, insert...
thanks in advance
running multiple MySQL queries in batch from PHP
Moderator: General Moderators
-
davidklonski
- Forum Contributor
- Posts: 128
- Joined: Mon Mar 22, 2004 4:55 pm
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England