note 80570 added to language.types.string

From: Date: Wed, 23 Jan 2008 02:38:30 +0000
Subject: note 80570 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-135323@lists.php.net to get a copy of this message
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; ---- Server IP: 61.195.146.164 Probable Submitter: 210.148.53.44 ---- Manual Page -- http://www.php.net/manual/en/language.types.string.php Edit -- https://master.php.net/note/edit/80570 Del: integrated -- https://master.php.net/note/delete/80570/integrated Del: useless -- https://master.php.net/note/delete/80570/useless Del: bad code -- https://master.php.net/note/delete/80570/bad+code Del: spam -- https://master.php.net/note/delete/80570/spam Del: non-english -- https://master.php.net/note/delete/80570/non-english Del: in docs -- https://master.php.net/note/delete/80570/in+docs Del: other reasons-- https://master.php.net/note/delete/80570 Reject -- https://master.php.net/note/reject/80570 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135323) next »