hello everyone !!!
i wanna sort top 10 website by votes but i m having this problem
suppose sql =
title vote
webdevelpor 333
coding fourm 312
boards 20 77
and i m using this php codes but problem is 77 is coming at top then 333 and then 312 ..
php codes
[code=php]
/// connection file /////
$rs = mysql_query (“SELECT *
FROM `site`
ORDER BY `vote` DESC
LIMIT 0 , 10”);
while ($row= mysql_fetch_array($rs))
{
$title = $row[‘title’];
$vote = $row[‘vote’];
echo “<table bgcolor=’#FFC088′ width=’600′ cellspacing=’4′ cellpadding=’4′>
<tr><td><b>$title</a></a></td>
<td width=20> $vote</td></tr></table>”;
}
}