Re: Looking for help with forms/variables and an array!
| From: | Jim Lucas | Date: | Tue, 12 Jun 2007 17:57:27 +0000 |
| Subject: | Re: Looking for help with forms/variables and an array! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256741@lists.php.net to get a copy of this message | ||
BSumrall wrote:
It doesn't like the curly brackets either! Bradif this is within PHP, the '{' and '}' are within double quotes (which they seem to be), These examples should all do the same thing. $query_Recordset1 = "SELECT * FROM lstng_tbl WHERE price_range = '$select1'"; $query_Recordset1 = "SELECT * FROM lstng_tbl WHERE price_range = '{$select1}'"; $query_Recordset1 = "SELECT * FROM lstng_tbl WHERE price_range = '".$select1."'"; echo $query_Recordset1; place an echo just after including the variable and see if you see the brackets in the statement. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare