Hey there everybody!
Me and a couple of others are currently making a CMS but we got a problem :(
Here is the code:
function ImportSQL()
{
$conn = mysql_connect($_POST['host'] . ":" . $_POST['port'], $_POST['user'], $_POST['pass']);
mysql_select_db($_POST['vision_db'], $conn);
$db_content = @file_get_contents("../sql/Database.sql");
$query = mysql_query($db_content);
if(!$query){
return mysql_error();
}else{
return true;
}
}
and here is the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE `navigation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` te' at line 2
i hope to get an answer! TY :D