|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Dec 2001
Location: Bournemouth
Posts: 276
|
Php Auto date adding??
Hello.
i'm making a simple online dvd catalogue to reference my vast mount of dvds (currently: 1120 :S) i want my admin page everytime i add a new record(dvd) to automaticly add the current date. so they can be called up and arrange by date @ the front end. i have added a row in the table called date, but am stuck from here. anyone? cheers. M@
__________________
System Spec: WinXP MediaCentre - Intel Nehalem i7 920 S1366 2.66GHz, Gigabyte GA-EX58-UD5, Nvidia 8800GTS 640Mbs DDR3, Corsair Memory 4GB (2X2GB KIT) DDR3 1600MHZ 240PIN UNBUFFERED, 4 x Seagate Barracuda 7200.11 1TB 7200RPM, OCZ Technology StealthXStream, Antec Black Twelve Hundred Tower Case, LG Electronics Blu-Ray/HD DVD-ROM COMBO 16x DVD+/-RW, 2x Acer 24" Wide V243W 5ms LCD TFT
|
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
You could either use MySQL's cur_date or even better change the column from a date column to a varchar and inserting a timestamp instead of a date. The advantage would be that you could sort by when it was entered.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Dec 2001
Location: Bournemouth
Posts: 276
|
ok, but how do insert a time stamp? easy?
|
|
|
|
|
|
#4 | |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Member (9 bit)
Join Date: Dec 2001
Location: Bournemouth
Posts: 276
|
i'm using dreamweaver 8, is there not some simple server behavior that will do this for me, i dont what to have to write it from fresh :S
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| php date question | Designer | Web Design / Development | 0 | 01-01-2007 06:31 AM |
| looping a mysql query with php | homer15 | Web Design / Development | 1 | 06-22-2005 05:03 PM |
| wifi | wondersquare | Networking & Online Security | 3 | 07-20-2004 03:28 PM |
| PHP: date() funtion | kstatefan40 | Web Design / Development | 3 | 06-21-2004 09:55 PM |
| Help! I think I've been hijacked ?? | fc3646 | Networking & Online Security | 11 | 06-04-2004 12:27 PM |