{
$data_queries[] = substr($line, 0, strlen($line) - 1);
+ // this line does not, too
+ }
+ elseif (strtolower(substr($line,0,6)) == "update")
+ {
+ $data_queries[] = substr($line, 0, strlen($line) - 1);
+
// this line does not, too
}
elseif (strtolower(substr($line, 0, 20)) == "drop table if exists")
{
// create sql query ending in this line
- if (strtolower(substr($line, 0, 1)) == ")")
+ if (strtolower(substr($line, 0, 1)) == ")") {
$table = false;
+ $line = substr($line,0,strlen($line)-1);
+ }
$table_queries[count($table_queries) - 1] .= $line . "\n";
}
}