Total Online: <?php onlineTotal(); ?>
Total Online: <?php onlineTotal(); ?>
Last edited by lCON; 24-08-09 at 07:28 PM.
Thx nice release!:D
no problem ^^ it`s my job to share hehehe ^^
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.
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.<p>Total Online: <?php onlineTotal(); ?></p>
lets decompose it for fun
<p> = ok just for the ''good looking''
  = 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 fucking line .
Strange thing is i'm sure its codded in a lot of '' open source website '' so KUNK ?
can use only on osrose osirose osprose
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
Now i have not used mysql in a bit but i think most of its right with changing the few missing areasCode:<?php include( 'what ever name you named the above file.php' ); error_reporting(O); ?> Total Online:<?php ONL() ?>
gmowner u are really noob... u dont know to code and u just unlife kid =D
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...
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.