Hi all,
I have created an inbox......which will show list of values......
if some new data added in inbox......it will be the last in the inbox table. i want the new entries
should appear first.

can u help me out...........

Recommended Answers

All 4 Replies

hi,
in sql query write like this 'ORDER BY id DESC' this may help u

Hi i wrote this statement but still its not working ..........i want the recent date which has entered should appear first............

$selcount = "SELECT * FROM autoalto_mail ORDER BY date DESC" ;

you just sort your table by id ,no need of sort by date..because your id is auto incremented one....

$selcount = "SELECT * FROM autoalto_mail ORDER BY auto_id DESC" ;

Hi..
i hope this is useful to u....
$selcount = "SELECT * FROM autoalto_mail ORDER BY primarykey column name DESC" ;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.