Jump to content

[SOLVED] Timestamp table in database


rkstevens

Recommended Posts

I have a timestamp table in my database, which gets a new record added at certain modification times. the timestamp is the only field in the table, and is the primary key.

 

I have tried the query: "SELECT * FROM Updated ORDER BY 'Update' DESC LIMIT 1" which would (in my mind) return the highest (or most current) timestamp. Unfortunately, it does not, and just returns the first record in the table. Adding or removing the 'DESC' does not change this; neither does removing the 'LIMIT 1'.

Not sure what I am doing wrong.

 

Link to comment
https://forums.phpfreaks.com/topic/99080-solved-timestamp-table-in-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.