PDA

View Full Version : Another PHP mysql Question


Mc Ghoush
Sat 11th Aug '01, 5:59am
Using mysql..
How can i insert any new data at the top of the table ...???
I want it to be like a guest book ...
Thanks

Mark Hensler
Sat 11th Aug '01, 10:35am
Just add a field with a datetime or timestamp data type. When people 'sign' the guestbook, set the field to the current time. When you print out the guestbook entries, ORDER BY time_field DESC

Mc Ghoush
Sat 11th Aug '01, 11:05am
Cool idea

I've just discovered how to show them in DESC order ...

Thank you ..