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



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
.



Relevant Pages

  • Re: [PHP] I know this is not easy and Im not stupid but...
    ... echo; ... [PHP] I know this is not easy and I'm not stupid but... ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] Recursive Directory Listing
    ... echo ''. ... // here's where i'm missing recursion, ... foreach ($subDirs as $subDir) ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] IFs!
    ... Below is my query, it does a conditional search based on info put in a form ... mssql_errorwhen I should be getting the echo, ... Always round up using ceil() ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] Variable not showing up.
    ... The variable, $linkspage, in the link, will not replace with information from the database for some reason. ... in the query. ... echo ''.$filename.''; ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • Re: [PHP] Cant use copy() to copy files
    ... Ben Stones wrote: ... works first of without success): ... Obviously it doesn't echo 5, it just echo's the file name which is a sign it ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)