Famous Posted July 25, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share Posted July 25, 2012 <?php $connection = mysql_connect("<myhost>", "<myuser>", "<mypass>"); mysql_select_db("ragnarok", $connection); $query = mysql_query("SELECT `online` FROM `login` WHERE `online`='1'"); $numonline = mysql_num_rows($query); echo $numonline; ?> Quote Link to comment Share on other sites More sharing options...
malufett Posted July 25, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 554 Reputation: 70 Joined: 04/04/12 Last Seen: November 8, 2013 Share Posted July 25, 2012 Where can I Found this? you already found it... BTW what are you trying to ask? Quote Link to comment Share on other sites More sharing options...
Mystery Posted July 25, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted July 25, 2012 It seems like an online player counter.. from the looks of it. Part of it at least.. Quote Link to comment Share on other sites More sharing options...
Famous Posted July 25, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted July 25, 2012 (edited) my friend ask me he need this script comming from my server but we dont know what excatly place should it be find....... I think its from mysql but im not pretty sure of the exact location Edited July 25, 2012 by zhen Quote Link to comment Share on other sites More sharing options...
Question
Famous
<?php
$connection = mysql_connect("<myhost>", "<myuser>", "<mypass>");
mysql_select_db("ragnarok", $connection);
$query = mysql_query("SELECT `online` FROM `login` WHERE `online`='1'");
$numonline = mysql_num_rows($query);
echo $numonline;
?>
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.