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