I\'m trying to create a computer reservation system, where user chooses a computer and select the time how long he will be using this PC. In that time other persons can\'t r
Normally I would do it this way:
date_from
and date_to
both of datatype DATETIME
WHERE '{$my_date}' >= date_to AND '{$my_date}' <= date_from
- by this You should be able to get all the PCs that are not reserved within a certain time...