RE: [PHP] Complex escape string

2008-05-03 Thread Steven R. Ringwald
-Original Message- From: cyaugin [mailto:[EMAIL PROTECTED] Sent: Saturday, May 03, 2008 10:20 AM To: php-general@lists.php.net Subject: [PHP] Complex escape string I have this line of code: $q = "This is the string that will go into the query: {${mysql_real_escape_string($_GET['searchstr

Re: [PHP] Complex escape string

2008-05-03 Thread Craige Leeder
Why exactly are you doing this? While variable-variables can be of use at times, I don't think this is one of them. How do you use this newly created variable. - Craige On Sat, May 3, 2008 at 1:20 PM, cyaugin <[EMAIL PROTECTED]> wrote: > I have this line of code: > > $q = "This is the string tha

Re: [PHP] Complex escape string

2008-05-03 Thread Casey
On 5/3/08, cyaugin <[EMAIL PROTECTED]> wrote: > I have this line of code: > > $q = "This is the string that will go into the query: > {${mysql_real_escape_string($_GET['searchstring'])}}"; > > What happens then is the user supplies 'foo' as the search string, and I get > a debug notice "Undefin