Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Querying records by date range

New Here ,
Aug 03, 2006 Aug 03, 2006
Using PHP and MySQL, each record that is inserted is timestamped. I want to query records by date range. For example, 10-26-2005 to 05-23-2006. Any way I can do this with Dreamweaver?
TOPICS
Server side applications
278
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 03, 2006 Aug 03, 2006
LATEST
Eiolon wrote:
> Using PHP and MySQL, each record that is inserted is timestamped. I want to query records by date range. For example, 10-26-2005 to 05-23-2006. Any way I can do this with Dreamweaver?

SELECT * FROM myTable
WHERE myTimestampColumn BETWEEN '2005-10-26' AND '2006-05-23'

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines