Jump to content

PHP ayuda


4Metin

Recommended Posts

Esta es la función que hice para comprobar si alguien está on, espero que te sirva.

 

function isonline($character_id) {
connectdb("server1","log");
$query = mysql_query("SELECT how FROM log WHERE who = ".$character_id." ORDER BY time DESC LIMIT 1");
$result=mysql_fetch_array($query);
if($result['how'] != "LOGOUT" && $result['how'] != "" && $result['how'] != "CREATE PLAYER") {
return true;
} else {
return false;
} 
}
Link to comment
Share on other sites

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...