Thanks for replying guys I appreciate it. I feel that more explanation is in order though.
Your absolutely right I can do it that way and is how I have been doing it. Though I am still warping a foreach loop in a foreach loop, and my question still remains.
I'm sorry but it is rather hard for me to put this question into words as it is kinda complicated in my own mind.
So I will ask this instead. How is it that a mysql_fetch_assoc() works?
why is it that I can have a 1000 rows of data from a query but still call them with the same array name ($row["name"]) in a while loop?
$result = mysql_query("SELECT name FROM users");
if($row = mysql_fetch_assoc($result)){
echo $row["name"].'<br />';
}
How do I take 1000 entries in an array and make them all spit out in a while loop by only using ($row["name"]) and not $row[1]["name"], $row[2]["name"], $row[3]["name"], $row[4]["name"] and so on?
BTW how are you guys posting the code in a colored format that is cool I am putting the [ code ][ /code ] tags around it but don't get that.