peter s
2006-11-06 08:19:32 UTC
This is the script i used that echos 70 of the same name:
$query = "SELECT * FROM tablename ORDER BY rand() LIMIT 70";
$result = mysql_query($query)
or die ("crap");
$num = mysql_num_rows($result);
$row = mysql_fetch_array($result);
extract($row);
while ($row = mysql_fetch_array($result))
{
echo "$NAME";
}
Can you edit this to make it echo a different name each pass of the while loop and never repeat more than once.
Thanx, any questions just ask. I need help bad lol.