note 42486 deleted from function.mysql-query by sp
| From: | sp@php.net | Date: | Sat, 24 May 2008 21:03:34 +0000 |
| Subject: | note 42486 deleted from function.mysql-query by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139714@lists.php.net to get a copy of this message | ||
Note Submitter: samm at os2 dot ru
----
Small correction to the klync post (18-Jan-2004 09:05)
instead
foreach ( explode(";", "$sql_query") as $sql_line) {
its better to use
foreach ( explode(";\n", "$sql_query") as $sql_line) {
to avoid errors on strings lines like:
INSERT INTO
cms_text VALUES ('test; test');