Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using PHP/MySQL to display data by date



MySQL and MS-SQL have different syntax and function names for dealing with dates.

On Jun 22, 2004, at 12:35 PM, Roger Withnell wrote:

I use ASP/MS-SQL, but you first need to use SQL to select the correct
records, something like:

SELECT * from TABLE WHERE StartDate <= GetDate() AND EndDate >= GetDate() -
(GetDate() is the current date)


And then use a "While not EOF" loop to step through the records, writing
them to the page.

Lucas Holt email@hidden ________________________________________________________ FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging) _______________________________________________ web-development mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development Do not post admin requests to the list. They will be ignored.


References: 
 >RE: Using PHP/MySQL to display data by date (From: "Roger Withnell" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.