Okay, I have a .sql file generated by phpmyadmin containing about 300 INSERT queries of the form:
INSERT INTO tracks( played, artist, title, user, updated )
VALUES ( 1154386861, 'The Beatles', 'Hey Jude', 'ClarkF1', 0 ) ;
Now, when I tried to import the file using PHPmyadmin I got 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 '' at line 1
So I wrote a short script to loop through the contents of the file line by line removing any special characters etc using trim on each line.
That produced the same error.
However, copying the file contents into the sql entry field in phpmyadmin worked perfectly.
Can anyone see any problem in the query that would prevent it being parsed by the phpmyadmin import function?