format("Y-m-d");
$surveyTime =date('H:i:s');
$myUID = $user_data['u_id'];
if(isset($_POST['done'])){
$custName = mysql_escape_string($_POST['custName']);
$custMobile = mysql_escape_string($_POST['custMobile']);
$commentBox = mysql_escape_string($_POST['commentBox']);
$myRangeA = mysql_escape_string($_POST['myRangeA']);
$myRangeB = mysql_escape_string($_POST['myRangeB']);
$myRangeC = mysql_escape_string($_POST['myRangeC']);
$myRangeD = mysql_escape_string($_POST['myRangeD']);
$dealer = mysql_escape_string($_POST['dealer']);
$score =((($myRangeA + $myRangeB + $myRangeC + $myRangeD) / 4) / 10) * 100;
mysql_query("INSERT INTO fgp_lounge_db(date,time,custName,custMobile,commentBox,Qa,Qb,Qc,Qd,dealer,score)
VALUES('{$surveyDate}','{$surveyTime}','{$custName}','{$custMobile}','{$commentBox}','{$myRangeA}','{$myRangeB}','{$myRangeC}','{$myRangeD}','{$dealer}','{$score}')");
echo "THANK YOU!
You have completed the customer the feedback form.
Your input will help us improve our service in the future and make your next visit a more enjouyable one. If you have any concerns or inquiries, please feel free to contact us anytime.