code:
$query_tags = mysql_query("SELECT COUNT(id) AS count_id, name FROM pp_tags GROUP BY name ORDER BY count_id DESC LIMIT 0,50");
That should work for the query
Also that array copying code doesn't look right either like saralk was saying.
So try this:
code:
$i = 0;
while ($row_tag = mysql_fetch_array($query_tags)) {
$tags[$i] = $row_tag;
$i++;
}
You need to overwrite your while loop with that second piece of code.
Good Luck
