Register for your free account! | Forgot your password?

You last visited: Today at 14:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP website

Discussion on PHP website within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old 02/06/2012, 23:52   #16
 
elite*gold: 0
Join Date: Aug 2011
Posts: 112
Received Thanks: 16
nvm there we are thank you power! i hit thanks

Total Accounts: 8
Total Characters: 15
Players Online: 0
Buzz[PM] is OfflineServer Status: Online

but theyre mixed now
buzz2289 is offline  
Old 02/06/2012, 23:57   #17

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
ok here is the fix
above code is updated to

search for below code
PHP Code:
echo "Buzz[PM] is Online";
}
else
{
echo 
"Buzz[PM] is Offline";

and change it with
PHP Code:
echo "Buzz[PM] is Online </ br>";
}
else
{
echo 
"Buzz[PM] is Offline </ br>";

or to say it verry easy

just add </ br> at the end of the text ..

Greetings From PowerChaos
PowerChaos is offline  
Old 02/06/2012, 23:59   #18
 
elite*gold: 0
Join Date: Aug 2011
Posts: 112
Received Thanks: 16
ok ty sir!

Quote:
<?php
require("config.php");
?>
<td align="left"><p>
<?php
mysql_select_db($mydbacc);
$res = mysql_query("SELECT * FROM account;");
$val = mysql_num_rows($res);
echo "Total Accounts: ".$val."<br />";

mysql_select_db($mydbdata);
$players = mysql_query("SELECT * FROM cq_user;");
$playnum = mysql_num_rows($players);
echo "Total Characters: ".$playnum."<br />";
$player = mysql_query("SELECT * FROM cq_user WHERE Login_time > last_logout ORDER by

Login_time desc");
$num = mysql_num_rows($player);//Grabs the total amount of rows
echo "Players Online: $num <br />";
$staff = mysql_query("SELECT * FROM cq_user WHERE Login_time > last_logout AND name LIKE

'BuzzThe[PM]' ORDER BY Login_time DESC");
$staff_num = mysql_num_rows($staff);
if ($staff_num == "1"){
echo "<font style='color: lime'><B>Buzz[PM]</B></font></br>";
}
else
{
echo "<font style='color: maroon'><B>Buzz[PM]</B></font></br>";
}
echo "</ br>Server Status: ";
$fp = @fsockopen($serveraddress, $serverport, $errno, $errstr, 1);
if (!$fp) {
echo "<font style='color: maroon'><B>Offline</B></font></br>";
}
else
{
echo "<font style='color: lime'><B>Online</B></font></br>";
fclose($fp);
}
?>
here is my edit and works! thank you power! now it says Buzz[PM] or Buzz[PM]


I think this is a great thread for new guys cause you two helped me alot

take a look

now here is a tricky one......maybe

ok i want to make a whole nother page but on this page i want it to show ALL online players that's staff and regular players is this possible?
buzz2289 is offline  
Thanks
1 User
Old 02/07/2012, 03:35   #19

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
Eurion , i leave that up to you to provide him the other stuff he need

because next thing he going ask is how he can show legion status , how he can show full server status , how he can show pet status , how he can show pet stars and so on

if he want all that stuff then he got 3 options
  • making it on his own ( he got the commands )
  • waiting on some1 who like to help him with it
  • getting the control panel i made :P

anyway
to help him atleast a little
take a look at the code i provided ( yes that snipped you made in your quote)
it will get all users that are online from mysql , now it is up to you to show that data in a table (search for while command)

Greetings From PowerChaos
PowerChaos is offline  
Reply




All times are GMT +1. The time now is 14:33.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.