Jump to content

MYSQL ARRAY HELP PLEASE


Orionsbelter

Recommended Posts

hi am trying to get an mysql array of some users, i want to randomly select 4 users that are online so i have done the following.

 

mysql_fetch_object(mysql_query("SELECT username FROM users WHERE online > $timenow "));

 

now i want to put all the usersnames into an array and the randomly pick four, anyone know how i would go about that please?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/156646-mysql-array-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.