Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
dear allhow do i place this code=> order by Posted desc <= inside below$str2 = "select count(Users) as numbers2, Posted from ".$dal_table->TableName()." where Users='".$data["Users"]."' group by Posted";please advise with thanks
global $strTableName;$str2 = "SELECT count(Users) as numbers2, Posted FROM ".$strTableName." WHERE Users='".$data["Users"]."' ORDER BY Posted DESC GROUP BY Posted";$rs = CustomQuery($str2); //the query result is in $rs
thanks cristian