Ok, if no one will answer.. I'll answer it myself.
PHP Code:
<?php
// Connect to the database so we can use it, doi.
mysql_connect("localhost","user","pass");
// SELECT the database that were gonna need.
mysql_select_db("thedb");
// Make an array to hold every users name, and set our counter at 1
$usersArray[24];
$t = 1;
// Define our query that will be used, and the result
$query = "SELECT * FROM users";
$result = mysql_query($query);
// Keep on chuggin' through the table until we've gone through the whole thing
while($row = mysql_fetch_array($result)) {
// Store the name that were currently on, in the array
$usersArray[$t] = $row["name"];
// Increment t by 1.
$t++;
}
// Clean up after were done! (We're polite, right?)
mysql_free_result($result);
?>
That'll take all the records of the database, and store them into an array. With that done, I can now easily randomize, and group them.