30 ) { $sql = "DELETE FROM t_session WHERE count=".$tmp['count']; if ($res = mysql_query($sql)) { @mysql_free_result($res); $addCounter = true; } else { $showCounter = false; } } else { $sql = "SELECT MAX(count) AS vnum FROM t_session"; if ($res = mysql_query($sql)) { if (mysql_num_rows($res) != 0) { $tmp = mysql_fetch_array($res); $_SESSION['VISIT_NUM'] = $tmp['vnum']; @mysql_free_result($res); } } else { $showCounter = false; } } } else { $addCounter = true; } } else { $showCounter = false; } } else { $showCounter = true; } if ($addCounter) { $sql = "INSERT INTO t_session SET " ."ip_address='".$usrIPAddr."', " ."last_visit='".date("YmdHis")."'"; if ($res = mysql_query($sql)) { $_SESSION['VISIT_NUM'] = mysql_insert_id(); @mysql_free_result($res); } else { $showCounter = false; } } ?> Si Pulen :: Beras Keluargaku
[ SKIP ]
Copyright © 2003, Si Pulen | Developed by NetDesain