Re: Is the syntax correct?

From: Date: Tue, 12 Apr 2005 14:24:48 +0000
Subject: Re: Is the syntax correct?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212918@lists.php.net to get a copy of this message
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

« previous php.general (#212918) next »