QUOTE(modi123_1 @ 1 Jul, 2009 - 10:46 AM)

You just outlined some pretty basic php - database interaction.
User logs in - their info goes into a table.
When they start up and want a game make another database call that randomly selects 15 users and return that data to the form.
When the stored procedure makes that call you would probably want to mark a bit column to indicate they are being "used" and not to be used by another user.
thanks for replying but i know how to think about it and how it would be but dont know how to put it in script
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db_name", $con);
$result = mysql_query("SELECT * FROM players");
while($row = mysql_fetch_array($result))
{
echo $row['username'] . " " . $row['password'];
echo "<br />";
}
mysql_close($con);
?>
with that you can get the list from the table from the database 'players'
but how to put 15 random players in a user when he logs in plz can someone give script so i could understand