I have 2 while loops, one inside the other.
So
while ($info5 = mysql_fetch_array($result5))
{
print "</td>";
then I have this sql query
include('database.inc');
$sql6 = "SELECT count(checkins.placeID) as methoda FROM checkins, places, activities WHERE activities.actID=places.placeActivity AND checkins.placeID = places.placeID and checkins.cityID = ".$city." group by checkins.placeID order by checkins.placeID, activityName";
$result6=mysql_query($sql6);
$count=mysql_num_rows($result6);
while($row = mysql_fetch_array($result6))
{
echo $row["methoda"];
}
print "</td></tr></table>" ;
}?>
The problem is that I receive 1 table, for example like this:
Place1 -> 321
Place2 -> 321
Place3 -> 321
The order is right, but I receive it as an array!
The correct should be
Place1 -> 3
Place2 -> 2
Place3 -> 1
I don’t know how to split the array $row, or if it is a transpose problem, or the count command has stacked, etc. I don’t really know! Please help me.
The code should be something like this:
Edit it according to your requirement. Notice the placement of
td,trandtabletags