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.
Expand|Select|Wrap|Line Numbers
- <?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);
- }
- }
- ?>