Mailinglisten-Archive |
Alexander Mieland wrote: > $user_post_percent = 100 * $userposts / $gesamtposts; > $query = "select * from tabelle"; $result = mysql_query($query); $gesamtposts = mysql_numrows($result); //Summe aller Postings $query = "select * from tabelle order by userposts limit 0, 10"; $result = mysql_query($query); $userposts = mysql_numrows($result); //Summe aller Postings der 10 besten Sollte so gehen. HTH Mark -- German Gabber Network _(at)_ http://www.gabber.de Infos und Tips zu PHP http://www.php-homepage.de
php::bar PHP Wiki - Listenarchive