Hi all,
I'm creating an equipment reservation (PHP/MySQL) for my school.
My database looks like this:
tblEvents:
id
start
end
equipID
tblEquipment:
id
name
description
I'd like to know the best way to query the database based on a user's time parameters to see if a certain item is 'not available.'
For example, if I have the following data:
tblEvents:
id start end equipID
1 1251312300 1251324000 1
And the user submits the query, looking to see if "equipID" 1 is available, and they put:
1251300300 as their start and 1251524000 as their end.
Any help on getting this started would be great. Thanks.