Hi all, im having a little problem
check this code and read below it:
Code:
            $sql = "select choice1_hits, choice2_hits, choice3_hits, choice4_hits
                  from poll";
            $result = mysql_query($sql) or die (mysql_error());
            
            $row = mysql_fetch_array($result);
            
            $max = $row["choice1_hits"];
            if ($max < $row["choice2_hits"]) {
                  $max = $row["choice2_hits"];
            }
            if ($max < $row["choice3_hits"]) {
                  $max = $row["choice3_hits"];
            }
            if ($max < $row["choice4_hits"]) {
                  $max = $row["choice4_hits"];
            }
I want to get the numbers from the greatest to the smallest, please help me in this... Any help is most appreciated.. thanks guys