Count records with today's timestamp mysql php : Here is my PHP code it is working in localhost but when i am uploading on server it is not working it taking 1 day before data from database. If any one have answer please reply it is very urgent. Thanks in advance.

    <?php
	require_once('connection.php');
	$id=$_SESSION['SESS_MEMBER_ID'];
	$query = mysql_query("select count(*) as Unread3 from s_daily_reporting where (mem_id='$id')&&(entry_time >= DATE_SUB(CURRENT_DATE(), INTERVAL 0 DAY))");
	$data2= mysql_fetch_array($query);		
	echo $sum=8-$data2['Unread3'];
	?>