note 80570 deleted from language.types.string by danbrown
| From: | danbrown@php.net | Date: | Tue, 17 May 2011 14:17:27 +0000 |
| Subject: | note 80570 deleted from language.types.string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179808@lists.php.net to get a copy of this message | ||
Note Submitter: yuchunjiang at gmail dot com
----
this is the sql string that use the variable and and \' and function.It generate the correct
result.
$sql1=<<<EOT
INSERT INTO hp_visitHistory ( col1,col2,col3)
VALUES ( NOW(), '{$col2}', '{$_SERVER['REQUEST_URI']}')
EOT;
echo $sql1;