Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Orazio Principe  >  SQL Parser  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: test php file
Class: SQL Parser
Parse SQL files and extract query statements
Author: By
Last change:
Date: 2011-10-24 01:54
Size: 247 bytes
 

Contents

Class file image Download
<?php

error_reporting
(E_ALL);
chdir(dirname(__FILE__));

require_once(
"SqlParser.php");

$sqlLists SqlParser::parse(file_get_contents("test.sql"));

foreach(
$sqlLists as $sql):
    
//Execute your query :)
    
echo $sql."\n<br>";
endforeach;

?>