Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: Is it ready for real life situations?

Quote Reply
Re: Is it ready for real life situations? In reply to
Jerry,

Let SQL return the dates.. it can sort on the dates, and search on the dates.

SELECT * FROM Links Where Add_Date < current_date()

You can also change the date format to almost anything (look in the middle of the mysql book for a good table).

The problem with Timestamp is that it's an auto-update field. Every time the database record is accessed it changes. It's sort of a 'date of last mod' field. That would not be a bad idea for the 'updated' field, except (or because) Admin modifications would be recorded as well as user mods.

I have added a "Time" field to the record, and that is probably the easiest way to do it. That way you can easily sort by time_of_day to see when most activity is, etc.

The time I use is HH:MM:SS and it works just fine through the DBSQL.pm interface with the Links table.

I probably would change the Mod_Date to a timestamp and add a TimeOfDay (HH:MM:SS) field to the final version of my database).

Subject Author Views Date
Thread Is it ready for real life situations? Visionary 4147 Oct 14, 1999, 5:01 PM
Post Re: Is it ready for real life situations?
widgetz 4034 Oct 14, 1999, 5:19 PM
Post Re: Is it ready for real life situations?
pugdog 4048 Oct 14, 1999, 7:50 PM
Post Re: Is it ready for real life situations?
dearnet 4045 Oct 15, 1999, 12:34 AM
Post Re: Is it ready for real life situations?
nailsTJ 4037 Oct 15, 1999, 3:34 AM
Post Re: Is it ready for real life situations?
Alex 4044 Oct 15, 1999, 7:15 AM
Post Re: Is it ready for real life situations?
dearnet 4049 Oct 15, 1999, 8:01 AM
Post Re: Is it ready for real life situations?
widgetz 4053 Oct 15, 1999, 11:09 AM
Post Re: Is it ready for real life situations?
pugdog 4063 Oct 15, 1999, 11:51 AM
Post Re: Is it ready for real life situations?
widgetz 4037 Oct 15, 1999, 2:46 PM
Post Re: Is it ready for real life situations?
widgetz 4075 Oct 15, 1999, 3:53 PM
Post Re: Is it ready for real life situations?
pugdog 4054 Oct 15, 1999, 5:39 PM
Post Re: Is it ready for real life situations?
widgetz 4066 Oct 15, 1999, 5:57 PM
Post Re: Is it ready for real life situations?
Alex 4060 Oct 18, 1999, 6:13 AM