Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Ksort


after I fill the fields with the names of the users and count the number of
the same users
( array_count_values( )
and sort them with ksort()
it doesn't put the user that repeats the most often at the top

What am I doing wrong?

$name=array();

while ($listname= mysql_fetch_assoc($score))
{

$name[] = $listname['user_name'];
}

mysql_free_result($score);

$name = array_count_values($name);

ksort($name);

while (list($key, $val) = each($ime)) {

{

echo "Name:$key
";
}


View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:

    Copyright © 2005-08 www.BigResource.com, All rights reserved