I have a sql query:
$query=mysql_query("SELECT * FROM timesheet WHERE authorized=0 AND uname='$uname' AND date BETWEEN (NOW( ) - INTERVAL 14 DAY) AND NOW( ) GROUP BY date",$db);
It returns the proper information, but it doesn't return all the records. So say you have to records on the same date, it will only return one of them. I've tried order by which gives me the proper results except that it displays the same records multiple times, like this:
Edit Delete 2003-07-04 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-07 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-08 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-09 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-10 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-11 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-11 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-11 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-11 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-11 Normal 7.50 AQUACOMM Technology Services Yes
Edit Delete 2003-07-11 Normal 7.50 AQUACOMM Technology Services Yes
Anyone have any ideas?
M