QUOTE
… into a php file that you could run from your php server
What you need is then to generate a PHP statment like
CODE
$goforit = mysql_query('here goes 1st query') or die (mysql_error());
$goforit = mysql_query('here goes 2st query') or die (mysql_error());
etc …
Now if you 'search and replace' the SQL generated by SQLyog in an editor and replace
CODE
;
with
CODE
;') or die (mysql_error());
$goforit = mysql_query('
it will be 95%. You will need to add the connection string and edit first and last statement. But it is a reasonably good idea of yours I think. One more export option: 'export as PHP-script'.