PHP Classes

SQL Import: Execute MySQL queries imported from a file

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 29%Total: 2,854 All time: 1,316 This week: 263Up
Version License PHP version Categories
sqlimport 1.0Public Domain4.0Databases, Files and Folders
Description Author

The class can be used to execute MySQL database queries imported from a file.

It opens a given file and reads it line by line to execute as SQL queries to a given MySQL database.

Picture of Ruben Crespo
  Performance   Level  
Name: Ruben Crespo <contact>
Classes: 6 packages by
Country: Spain Spain
Age: 45
All time rank: 1174 in Spain Spain
Week rank: 177 Down6 in Spain Spain Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file SQLTest.sql Data SQL File Example
Accessible without login Plain text file sqlImportExample.php Example Example
Plain text file ClassSQLimport.php Class Class Source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,316
This week:263Up
User Ratings User Comments (2)
 All time
I've tested the example, and it doesn't work!!!
13 years ago (Mariano Gomez)
That's a good, very useful and simple class to import sql .
13 years ago (José Filipe Lopes Santos)
For more information send a message to info at phpclasses dot org.