Announcement

Collapse
No announcement yet.

Another PHP mysql Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Another PHP mysql Question

    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

  • #2
    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

    Comment


    • #3
      Cool idea

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

      Thank you ..

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X