include("config.php"); if (!$connection) { $dbcon = "Epic Fail"; } else { $dbcon = "Successful"; } $url = "database.sql"; foreach($file_content as $sql_line){ } } else { $sqldone = "Epic Fail"; }
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 '' at line 1 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 '`id`[...]
Czy jest jakieś proste rozwiązanie? Plick .sql jest poprawny, przez konsole i phpmyadmin wczytuje się prawidłowo. Samo połączenie też działa.