$sql6="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$i' AND `seat` = '$best_line'";
$sql6="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$i' AND `seat` = '$best_line'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
$sql4="SELECT * FROM select_seat WHERE `train_id` = '$train_id' AND `date` = '$train_date' AND `arrival` = '$train_arrival' AND `row` = '$r' AND `seat` = '$i'";
<li><ahref="javascript:void(0)">Confirm Plan <iclass="fa fa-arrow-right"></i></a>
<listyle="display:block;"id="confirm_btn"><ahref="javascript:void(0)"id="confirm_btn"onclick="confirmTripPlan();">Confirm Plan <iclass="fa fa-arrow-right"></i></a>