Hy all..I have a table where I'm storing the date in the following format: 'YYYY-mm-dd 00-00-00'. Now I want to make a select statement and display all records where date is BETWEEN the dates i give. Like this:
$c=mysql_query("SELECT * FROM useri where data_creare_user BETWEEN '2012-06-01' AND '20120-06-05' "); $d=mysql_fetch_array($c); echo $d['nume']; I know that I have to convert somehow the date from the table but I can't seem to figure it out.Can you tell me hoe to display the records based on that select statement?