This line:

Code
$backuptext .= ";\n\n";

Should be moved up in the
Code
if (!$crow) {

section.

This prevents empty lines with a ; to get into the sql file exported when a table has over 500 rows. I had errors about "empty sql statements" when trying to import tables with the original exported files. Worked fine after I applied my fix.


[Linked Image from siemons.org]