note 55859 deleted from function.mysql-query by sp
| From: | sp@php.net | Date: | Sat, 24 May 2008 21:06:17 +0000 |
| Subject: | note 55859 deleted from function.mysql-query by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139716@lists.php.net to get a copy of this message | ||
Note Submitter: thomas -at - pixtur -dot- de
----
a comment on nivelzero's excellent sql-dump-script.
It was excactly what I was looking for. Sadly in my case the sql-dump had dos-style linebreaks.
Changing the regex to ...
if(preg_match("/;\s*$/", $sql_line)){
... will make the function working on both platforms. Thanks for the script.