GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("connect.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); $uname=$_GET['uname']; $datee=$_GET['datee']; $type=$_GET['type']; $weight=$_GET['weight']; $actual_price=$_GET['actual_price']; $sql="INSERT INTO `debit_record`(`uname`, `type`,`datee`, `timee`,`weight`,`actual_price`) VALUES ('".$uname."','".$type."','".$datee."','".date('h:i:s A')."','".$weight."','".$actual_price."')"; $rs=mysqli_query($conn,$sql); if($rs>0) { echo "1"; } else { echo "0"; } ?>