Basically, I'm trying to get 10 random rows from MySQL and put them in my page. Getting those 10 random rows is easy. The code that i have is:
$r = mysql_query("SELECT * FROM email order by rand()limit 10")
or die(mysql_error());
while($row = mysql_fetch_assoc($r))
{
echo $row['Email'];
}
Now, echo gets those 10 rows and shows them to me, but I need to separate them, so I can put them in my site, one per div or whatever. Can anyone tell me how to separate those emails so I can put each of them in the place I need?