PHP Classes

File: test.php

Recommend this page to a friend!
  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: 11 years ago
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;

?>