hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Mysql Query - DATETIME
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Mysql Query - DATETIME

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-10-2004, 12:39 PM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
Angry

Mysql Query - DATETIME


referring to this post:

http://www.webhostingtalk.com/showth...hreadid=306727

I changed the date time, but the problem comes when I try to fetch the appointments.

I can not seem to get the right query..

As I said there are appointments that are recorded by the 15's and 30's and 45's... Can that be evaluated in the DATETIME?

Thnx alot,

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

Reply With Quote


Sponsored Links
  #2  
Old 08-10-2004, 12:48 PM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
I made this query:

PHP Code:
$query_it "SELECT * FROM appointments WHERE `" $to_tell "`='$the_id'
                     AND ((`st` > '
$start_datetime' AND `st` < '$end_datetime' ) OR (`et` > '$start_datetime' AND `et` < '$end_datetime'))"
the good thing is that it catches all the appointments on the edges, 15,30,45.. I have to test it more..

anyone has a bad side to that query please tell me

Peace,

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

Reply With Quote
  #3  
Old 08-10-2004, 12:54 PM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
Seems to be that i am the only one looking

problem: appt reserverd for 01 --> 20 (hours)..

when making one from 01 --> 05 the first one does not get cought?

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Alert Logic Releases New Version of Security and Compliance Solution Web Hosting News 2013-02-19 15:55:16
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?