<?
$host="localhost";
$username="";
$password="";
$db="bookcar";
$tb="bookcar";
$connect= mysql_connect( $host,$username,$password) or die ("ติดต่อกับฐานข้อมูล Mysql ไม่ได้ ");
mysql_select_db($db) or die("เลือกฐานข้อมูลไม่ได้");
$sql="UPDATE $tb SET bookdate='$bookdate',name='$name',tel_1='$tel_1',position='$position',office='$office',location='$location',tel_2='$tel_2',carnumber='$carnumber',destination='$destination',trip_des='$trip_des',date_start='$date_start',time_start='$time_start',date_finish='$date_finish',time_finish='$time_finish',passenger1='$passenger1',passenger2='$passenger2',passenger3='$passenger3',passenger4='$passenger4',passenger5='$passenger5',passenger6='$passenger6',passenger7='$passenger7',passenger8='$passenger8',passenger9='$passenger9',passenger10='$passenger10',passenger11='$passenger11',passenger12='$passenger12',mile_start='$mile_start',mile_finish'$mile_finish' where id=$id";