PHP MySQL Multi-statement works on my webpage but not on XAMPP
问题 So I use this code to connect to MySQL and execute multiple statements: $connect=@mysql_connect($host,$user,$pass,false,65536) or die("Can't connect"); mysql_select_db($base,$connect); When connected I do: mysql_query("CREATE TABLE IF NOT EXISTS tablename ...;\nINSERT INTO tablename ...;"); I use this code to execute backup files containing the same code above (\n=new line). When I run this script on my webpage (hosted server) it works but on my local computer where I use XAMPP it shows an