Re: Looking for help with forms/variables and an array!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux