- Joined
- Aug 19, 2007
- Messages
- 4,940
- Solutions
- 11
- Reaction score
- 353
So, I need some help with something like this, online players are saved into `players_online` table. I want my site to check if the player you are looking at (Search Player) is whether online or offline and post it under "Status". I'm using Avarians AAC and already tried few things, but since I'm noob at it, none of them worked x).
This might help you in udnerstanding how I want it:
Don't laugh pls and help me ^^
This might help you in udnerstanding how I want it:
PHP:
$onl = mysql_query("SELECT * FROM `players_online` WHERE (`name` = '".$acc_sql['name'].'") ") or die(mysql_error())
while($acc_sql = mysql_fetch_array($onl)){
echo '<td width="100px"><center><font color="Green">Online</font></center></td>';}
else
{
echo '<td width="100px"><center></center></td>';}
Don't laugh pls and help me ^^