Location: PHPKode > projects > SQL Buddy > calvinlough-sqlbuddy-207c6fc/ajaxcreatetable.php
<?php
/*

SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/

ajaxcreatetable.php
- called from dboverview.php to create a new table

MIT license

2008 Calvin Lough <http://calv.in>

*/

include "functions.php";

loginCheck();

if (isset($db))
	$conn->selectDB($db);

if (isset($_POST['query'])) {
	
	$queryList = splitQueryText($_POST['query']);
	
	foreach ($queryList as $query) {
		$sql = $conn->query($query) or ($dbError = $conn->error());
	}
	
	if (isset($dbError)) {
		echo $dbError;
	}
	
}

?>
Return current item: SQL Buddy