note 55859 added to function.mysql-query
| From: | thomas-at-pixtur-dot-de at osu1 dot php dot net | Date: | Mon, 15 Aug 2005 21:14:46 +0000 |
| Subject: | note 55859 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93699@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55859
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55859&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55859&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55859&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55859&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55859&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55859&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55859&report=yes
Search -- http://master.php.net/manage/user-notes.php