Hi,
Can somebody advise how can I sort the output of $v as we required (numbers ascending and descending)
<?
$ii=1;
$sort_id=array(0,1,2,3,4,5,6,7,8,9);
if ($_POST['sort'] == '1D')
{
// asort($sort_id);
}
foreach ($sort_id as $v){
$cooo = "SELECT count(number) AS total FROM doc WHERE time BETWEEN $date2 AND $date3";
$com = "$a"."$b"."$c"."$a8"."$d"."$e"."$f"."$g"."$h"."$i"."$j"."$k";
$com3 = "$a8"."$d"."$e"."$f";
$sql = mysql_query($cooo.$com)or die (mysql_error());
while($sd2=mysql_fetch_array($sql))
{
?>
<tr valign="top">
<td align="left" bordercolor="#999999" ><? echo "$ii"; ?></td>
<td align="left" ><div align="center"><strong><? echo "$v"; ?></strong></div></td>
Thanks