GIF89a
<?php ob_start(); ini_set('error_reporting', E_STRICT); include("connect.php"); include("libs.php"); mysqli_set_charset($conn,'utf8'); date_default_timezone_set('Asia/Kolkata'); $uname=$_GET['uname']; $mobb=$_GET['mobb']; $state=$_GET['state']; $state=findState($conn,$state); $city=$_GET['city']; $type=$_GET['type']; $adds=$_GET['adds']; $sql="INSERT INTO `my_firm`(`uname`, `mobb`, `city`, `state`, `adds`, `type`, `datee`, `timee`) VALUES ('".$uname."','".$mobb."','".$city."','".$state."','".$adds."','".$type."','".date('Y-m-d')."','".date('h:i:s A')."')"; $rs=mysqli_query($conn,$sql); if($rs>0) { echo "1"; } else { echo "0"; } ?>