I would like to make a list
Posted on 2009-05-02
I have a list of members and by each member, it lists the "gifts" given by other members.
Sometimes a same "gift" is given numerous times.
I am trying to count each gift item and if they have
more than 5 of any type of gift, I would like to not list those
certain 5 and instead list a different graphic that indicates a group of
5 of them was given... the page lists 20 different members
at a time and grabs their list of gifts for a 20 members.
Can this be done?
This is what I have so far...
$sql_query3 = "SELECT user,thegift FROM giftsgivenlist WHERE user='$member7' ORDER BY id ASC LIMIT 20";
$result3 = mysql_query($sql_query3);
while($row3 = mysql_fetch_array($result3))
$member = $row3['user'];
$gifts2 .= $row3['thegift'];
$list .= "$member7, Gifts: $gifts2";
($gifts2 shows an image of what was given in a list)