Re: Is the syntax correct?

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

 



Hello Labunski,

Tuesday, April 12, 2005, 3:09:43 PM, you wrote:

L> Is the syntax correct? (in connection with $order) :

Nope. You need ; after the $order = lines.

L> switch ($page) {
L> case "news":
L>     $order = "DESC"
L>     break;
L> case "articles":
L>     $order = "ASC"
L>     break;
L> }

I.e.: $order = "DESC";

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I do not fear computers. I fear the lack of them." - Isaac Asimov

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