User Center > Forums > Promote your site
7.11.11 06:01 (Keralamix.in) [Report]
Php masters! Cant u solve my problem? Shame on you.
Pls help me to show online in my php toplist
7.11.11 06:04 (Keralamix.in) [Report]
RE1: Php masters! Cant u solve my problem? Shame on you
Pls
7.11.11 06:04 (mb48) [Report]
RE2: Php masters! Cant u solve my problem? Shame on you
7.11.11 06:06 (Keralamix.in) [Report]
RE3: Php masters! Cant u solve my problem? Shame on you
Please
7.11.11 06:07 (gamezmobinet) [Report]
RE4: Php masters! Cant u solve my problem? Shame on you
Html daylog counter add karde.
7.11.11 06:13 (Keralamix.in) [Report]
RE5: Php masters! Cant u solve my problem? Shame on you
But my users are asking for php counter instead of daylogs
7.11.11 06:17 (wapmetal) [Report]
RE6: Php masters! Cant u solve my problem? Shame on you
use this code
<?php
#-----------------------------------------------------#
# mod by mallunet.net #
# www.mallunet.net #
# Email : admin@mallunet.net #
# www.desirewap.info #
# www.wap4download.com #
#-----------------------------------------------------#


require 'moduls/ini.php';
require 'moduls/connect.php';



$online = mysql_fetch_array(mysql_query('SELECT * FROM `online` WHERE `ip` = "'.clean($ip).'";'));
if(empty($online['id'])){
$query = mysql_query("INSERT INTO `online` (`ip`,`time`) VALUES ( '".clean($ip)."','$time');");
}
else{
$query = mysql_query('UPDATE `online` SET `time`='.$time.' WHERE `id` = '.$online['id']);
}

$query = mysql_query('DELETE FROM `online` WHERE '.$time.' - `time` > '.intval($setup['online_time']).' AND `id`<>1;');
$all_online = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `online` WHERE `id`<>1;'));
$max_online = mysql_fetch_array(mysql_query('SELECT `time` FROM `online` WHERE `id` = 1;'));
if($all_online[0] > $max_online[0]){
$query = mysql_query('UPDATE `online` SET `time`='.$all_online[0].' WHERE `id` = 1');
}



?>
COPY CODE:
7.11.11 06:56 (Keralamix.in) [Report]
RE7: Php masters! Cant u solve my problem? Shame on you
What would be in ini.php & connect.php
Site: <.>.>>..1