ptmuldoon
04-18-2007, 01:17 AM
I'm trying have a query where I can set the list a specific order of a players games.
I know the below is wrong, I'd like to something like the following:
$order = "inactive, trading, attacking, waiting";
sql = "SELECT player, state FROM game WHERE player = user ORDER BY {$order} ";
I know the below is wrong, I'd like to something like the following:
$order = "inactive, trading, attacking, waiting";
sql = "SELECT player, state FROM game WHERE player = user ORDER BY {$order} ";