How do not register events in the time zone that is already registered?
Example: I have an event in the DB beginning at 18:00 and ending at 22:00, I need that if the user tries to register a new event from 19:00 to 23:00 the system do not allow it because it is in the time zone already registered ...
The DB has this structure: start - varchar (500) - example of register "18:00" and end - varchar (500) - example of register "22:00"
The Mysql Query for PHP 5.4:
$query = mysql_query("INSERT INTO compromiso (termino, inicio) VALUES ('$termino', '$inicio')") or die(mysql_error());