View Single Post
  #1 (permalink)  
Old 2007-05-07, 08:47 PM
Charliezak Charliezak is offline
Junior Member
 
Join Date: May 2007
Posts: 2
Charliezak is on a distinguished road
Default Mysql Date Format

Hi, im trying to get a date range Between anydate to anydate,

my date format is dd.mm.yyyy


this is the table

CREATE TABLE table (
id int(11) unsigned NOT NULL auto_increment,
custid varchar(11) NOT NULL default '',
note text NOT NULL,
date varchar(10) NOT NULL default '',
datefu varchar(10) NOT NULL default '',
PRIMARY KEY (id)
) TYPE = MyISAM;

is it basicly
SELECT * FROM $tablename WHERE datefu BETWEEN DATE $datefa AND DATE $datefb

Last edited by Charliezak; 2007-05-07 at 08:52 PM.
Reply With Quote
Sponsored Links