Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

total account user code here

Experienced Elementalist
Joined
May 2, 2009
Messages
221
Reaction score
3
Total Online: <?php onlineTotal(); ?>
 
Last edited by a moderator:
Experienced Elementalist
Joined
May 2, 2009
Messages
221
Reaction score
3
no problem ^^ it`s my job to share hehehe ^^
 
TGN Studio's
Joined
Jan 11, 2007
Messages
806
Reaction score
7
um this mite be nice and helpful if someone new the function for it lol.

And how to send the data to the Db cause the db does not send data normally. On Arc files.
This tells me you really don't understand php. all you posted was a call to a function that they may not event have.
 
Junior Spellweaver
Joined
Sep 3, 2006
Messages
190
Reaction score
5
<p>Total Online: <?php onlineTotal(); ?></p>

ok... This is not a ''Code'' , just a line who display the result of the fonction before , anyone can write it , its not a release.


lets decompose it for fun

<p> = ok just for the ''good looking''
&nbsp = first thing usable
onlineTotal = and wtf it comes from ?

you must tell what version of rose you use , what emu , what cms or whatever is your code based on
and by code i mean , not a Ducking line .
Strange thing is i'm sure its codded in a lot of '' open source website '' so KUNK ?
 
Experienced Elementalist
Joined
May 2, 2009
Messages
221
Reaction score
3
can use only on osrose osirose osprose
 
TGN Studio's
Joined
Jan 11, 2007
Messages
806
Reaction score
7
But your not getting the point here. They sill need to write a function that calls the database table and entry a echo of the data. I'm not trying to be rude but what you post still is nothing.

This is a Function for osrose osirose and osrose

Ok first Your config file for db connection.

Code:
<?php
//////Database Info///////
$DBhost = "localhost";   ///// Db Host location
$DBuser = "root";        ////  Db User Name
$DBpass = "";      ////  Db Password
$DBName = "";       ////  Db Name
//////////////////

mysql_pconnect($DBhost,$DBuser,$DBpass) or die(mysql_error());
mysql_select_db("$DBName") or die(mysql_error());

///How manny Online
function ONL() {
	global $dbhost", $Dbuser, $DBpass;
$db = mysql_connect("$dbhost", $Dbuser, $DBpass);
mysql_select_db( $Dbname ,$db);
$sql = "select * from accounttable where online = '1'";
$result = mysql_query($sql);
echo "".mysql_num_rows($result);
}

?>


Your page you wanna display the data
Now what you posted witch was usless with out the above data

Code:
<?php include( 'what ever name you named the above file.php' );
error_reporting(O);
?>

Total Online:<?php ONL() ?>

Now i have not used mysql in a bit but i think most of its right with changing the few missing areas
 
Newbie Spellweaver
Joined
Oct 6, 2008
Messages
69
Reaction score
0
gmowner u are really noob... u dont know to code and u just unlife kid =D
 
Experienced Elementalist
Joined
May 2, 2009
Messages
221
Reaction score
3
hayyzzz nub ok

i will accept that term

but im sure that there some people that i can help with that code or something etc...
 
TGN Studio's
Joined
Jan 11, 2007
Messages
806
Reaction score
7
right i agree he thought he was doing right. I just suggest to know what your talking about before posting cause people here will ridicule you to the fullest. But yea your line means noting what so ever without the other half. wit out it is just and error on your page.
 
Back
Top