I want to select the last saved record of a user from a table.Sometimes each user can have a duplicate uid which is the main search criteria but each record has a different id and date-time. If i select it using this
SELECT * from recharges WHERE uid = '$uid' LIMIT 1
it returns the first record of the user as oppose to what i want it to retrieve.