Soldato
- Joined
- 12 Feb 2006
- Posts
- 17,626
- Location
- Surrey
i'm trying to have a php script that records the latest 3 "threads" the user views by storing the id and name as session variables and if logged in then also in a database.
is there any way to have php order the session by time created?
atm i have it check if session1 is created then create session2, if 2 created then 3, if 3 then delete 1 and create 4, which is getting very ugly atm and is not the best way to have latest viewed first as the user could review the same as stored in session2 but session 3 will be shown as latest. again to sort this is becoming really ugly
thanks guys
is there any way to have php order the session by time created?
atm i have it check if session1 is created then create session2, if 2 created then 3, if 3 then delete 1 and create 4, which is getting very ugly atm and is not the best way to have latest viewed first as the user could review the same as stored in session2 but session 3 will be shown as latest. again to sort this is becoming really ugly
thanks guys