$odate=date("Y-m-d H:i:s"); $sql="INSERT INTO orders (uname, gid,odate) VALUES('$uname',$gid,'$odate')";