PHP beginner |
|
ik heb nu dit:
$res = mysql_query("SELECT DISTINCT(uid), CURRENT_DATE(), datum, DATEDIFF(CURRENT_DATE(), datum) AS verschil FROM cms_bestellingen ORDER by verschil DESC");
$res = mysql_query("SELECT DISTINCT(uid), CURRENT_DATE(), datum, DATEDIFF(CURRENT_DATE(), datum) AS verschil FROM cms_bestellingen ORDER by verschil DESC");
Dus inderdaad uniek selecteren van de bestellingen tabel, maar ik krijg toch alle namen vaker te zien.
|