function countdata() var userid= "<?php echo $_SESSION['user_id']; ?>"; $.ajax({ type: "POST", url: "./webservice/usercountnotifi.php", data:{user_id:userid}, success: function(data){ document.getElementById('update1').innerHTML = data; lastentry(); }
<?php include_once '../Login/db_connect.php'; include_once '../Login/Functions.php'; sec_session_start(); $mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE); if(!isset($_SESSION['user_id']) ) { header("location:../login.php"); exit(); } $userid = $_REQUEST['user_id']; date_default_timezone_set("Asia/Kolkata"); $startdate = date('Y-m-d'); }); ?>
session_set_cookie_params(9999999999, '/', 'domain.com'); session_cache_expire(9999999999);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)