RE: parse error, unexpected T_CLASS

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

 



[snip]
echo ("<div class=pmini> <h1> $row[1] </h1> <p> Location- $row[4] <br> 
Property Type- $ptype<br>Min Price- $row[9] </div>");

it gives an error..

Parse error: parse error, unexpected T_CLASS in 
/home/real/public_html/functions.php on line 162

Any idea..why? Probably any stupid mistake .. :(
[/snip]

Takes the parentheses out.

echo "<div class=pmini> <h1> $row[1] </h1> <p> Location- $row[4] <br> 
Property Type- $ptype<br>Min Price- $row[9] </div>";

>From http://www.php.net/echo "echo() is not actually a function (it is a
language construct) so you are not required to use parentheses with it.
In fact, if you want to pass more than one parameter to echo, you must
not enclose the parameters within parentheses."

-- 
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