PHP website

02/06/2012 23:52 buzz2289#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
02/06/2012 23:57 PowerChaos#17
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
02/06/2012 23:59 buzz2289#18
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

[Only registered and activated users can see links. Click Here To Register...] 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?
02/07/2012 03:35 PowerChaos#19
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