As the title states, within my files require_once is not working as intended.
I have a file where a user enters booking details and at the top it requires once the file to create the database and insert initial data into it.
The problem is it seems to be requiring it everytime, not just once.
For instance, i enter a booking and it goes into the database fine. When i revisit the booking page again, it requires that file again thus erasing the previous booking and adds the new booking. Ideally, the database should not be recreated and initialised again and there should be two new bookings rather than one.
I'm not sure why the require_once command is requiring the file more than once? Any Ideas?