Hi
I have the following query which displays records based on a certain timeframe sorted by 'in' variable:
$query = "SELECT DISTINCT * FROM data WHERE out >= '$time' ORDER BY 'in' DESC";
The problem is that it duplicates entries on the 'user' variable which I would like to restrict to one entry only and the latest one recorded in the database.
Is there a way of doing this easily??
Appreciate any help.
BoB.
I have the following query which displays records based on a certain timeframe sorted by 'in' variable:
$query = "SELECT DISTINCT * FROM data WHERE out >= '$time' ORDER BY 'in' DESC";
The problem is that it duplicates entries on the 'user' variable which I would like to restrict to one entry only and the latest one recorded in the database.
Is there a way of doing this easily??
Appreciate any help.
BoB.