I am very new to php and MySql, but I am writing a project for school on ticket reservation. I need help with:
creating a table in a db that has specified number of rows and the rows increase by mulitples of the specified number (Example: say I have a table for Bus A that has 15 seats so I want d db table to contain 15 rows but has the ability to add new 15 rows if a different date is selected)
checking the table with specified number of rows to see the rows that have not been filled with data from a form, echoing the ids of the empty rows and inserting new for data into any available empty row.
- get data from a form and insert it into different tables in a db.
I know this is cumbersome, but I will be glad if anybosy can help me. Let me know if the question is clear.
Thanks...