Re: [PHP-DB] compare between range

2007-11-12 Thread Chris

lameck kassana wrote:

hey i have database called timetable in mysql the fields are

 starttimeendtime
 19  21
 15  16

suppose i want to insert want to insert new starttime 17 to endtime 21 from
php script .How will  try to compare my range with my database range .


To do what? Tell you if a start-time is already taken? Tell you an 
end-time is already taken? Something else? You need to give us a lot 
more info.


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] compare between range

2007-11-12 Thread lameck kassana
hey i have database called timetable in mysql the fields are

 starttimeendtime
 19  21
 15  16

suppose i want to insert want to insert new starttime 17 to endtime 21 from
php script .How will  try to compare my range with my database range .


   thanks for advance.

laskkkassana