Re: [PHP] Looking for help with forms/variables and an array!
- From: lists@xxxxxxxxx (Jim Lucas)
- Date: Tue, 12 Jun 2007 10:57:27 -0700
BSumrall wrote:
It doesn't like the curly brackets either!
Brad
if 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
.
- Follow-Ups:
- RE: [PHP] Looking for help with forms/variables and an array!
- From: "BSumrall"
- RE: [PHP] Looking for help with forms/variables and an array!
- From: "BSumrall"
- Re: [PHP] Looking for help with forms/variables and an array!
- From: "Dan Shirah"
- RE: [PHP] Looking for help with forms/variables and an array!
- Prev by Date: Re: [PHP] Going from simple to super CAPTCHA
- Next by Date: Re: [PHP] Going from simple to super CAPTCHA
- Previous by thread: RE: [PHP] Looking for help with forms/variables and an array!
- Next by thread: Re: [PHP] Looking for help with forms/variables and an array!
- Index(es):
Relevant Pages
|