compare between range

compare between range

am 12.11.2007 09:15:28 von lameck kassana

------=_Part_13124_15969984.1194855328077
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hey i have database called timetable in mysql the fields are

starttime endtime
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

------=_Part_13124_15969984.1194855328077--

Re: compare between range

am 12.11.2007 23:56:51 von dmagick

lameck kassana wrote:
> hey i have database called timetable in mysql the fields are
>
> starttime endtime
> 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