Reply to Re: [PHP] parse error, unexpected T_CLASS

Your name:

Reply:


Posted by Marek Kilimajer on 04/19/05 23:03

Dasmeet Singh wrote:
> Jay Blanchard wrote:
> > [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."
>
>
> Removed the ()..still the same error :(.. am copying complete
> function..if its because of something else...
>
> function showProperty($filter, $by, $value)
> {
> if($filter==true)
> {
> $query="SELECT * FROM `Property` WHERE ".$by." = '".$value."'
> ORDER BY DateAdded DESC";
>
> }
> else
> {
> $query="SELECT * FROM `Property`ORDER BY DateAdded DESC;

----------------------------------------------------------------^

missing double quote.

Get some decent editor with syntax highlighting

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация