i have alot of check boxes and through that check boxex one select seat and send tha seat number to database.
i have a table named called trip in which i have some fields which are ok but they are on the start page user send booking time and selects "from" "to" after sending that there is a page of seat selection when ever im sending data of seat selection it sends data to the other line how can i send that too on the same line as the others are???
im sending data through this its working.
i have a table named called trip in which i have some fields which are ok but they are on the start page user send booking time and selects "from" "to" after sending that there is a page of seat selection when ever im sending data of seat selection it sends data to the other line how can i send that too on the same line as the others are???
im sending data through this its working.
Code:
<?php $connection = mysql_connect("localhost","root","autodeskmaya") or die("error connect"); mysql_select_db("online_bus_project"); if(isset($_POST['team'])) { foreach($_POST['team'] as $value) { $insert="INSERT INTO trip (seat) VALUES ('$value')"; mysql_query($insert); } } ?>
Comment