Is the syntax correct?

From: Date: Tue, 12 Apr 2005 14:09:43 +0000
Subject: Is the syntax correct?
Groups: php.general 
Request: Send a blank email to php-general+get-212916@lists.php.net to get a copy of this message
Is the syntax correct? (in connection with $order) : switch ($page) { case "news": $order = "DESC" break; case "articles": $order = "ASC" break; } mysql_query(" SELECT * FROM data ORDER BY id $order "); Sorry for my bad english, Lab.

« previous php.general (#212916) next »