my site is linked to a mysql database. For simplification, my main objective is to track journal entries and what date they were recorded on.
Desired Output:
Display a calendar in a table that has corresponding a hrefs if that particular date has an entry. Left Arrow and Right arrow at the bottom so the user can scroll through the months.
Database Setup:
1st Field(Store Dates) - INT(field type) - ex. 060830201255 - yymmdd-hhmmss - set as primary key
----August 30, 2006 8:12:55 PM
2nd Field(Store Journal Entries) -Text(field type) - ex - This is my entry for today, hello world.
a) Do you suggest that i add a field (listID) INT(field type) and make it auto increment....... and make this the primary key instead?
b)For storing the dates, should i make it a string(as above) or just use php datestamp or timestamp.
All this boils down to SQL FETCH staements and whats easier/faster to pickup the date within a specific range.
Also, any ideas on the calendar design.
TY
2006-11-27
17:05:19
·
5 answers
·
asked by
f1avor_f1av
3
in
Computers & Internet
➔ Programming & Design