![]() |
|
#1
|
|||
|
|||
Date calculation - newbiequiz.Hi all.
Trying to calculate a date from a variable but i cant get it to work. My variables and calculations looks like this: PHP Code:
The calculated date is 1969 12 31 and i don't know why. My tables are: +----------+-----------------+------+-----+---------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+-----------------+------+-----+---------------------+----------------+ | id_avtal | int(11) | | PRI | NULL | auto_increment | | created | datetime | | | 0000-00-00 00:00:00 | | | name | varchar(244) | YES | | NULL | | | signed | date | | | 0000-00-00 | | | period | int(4) unsigned | | | 0 | | +----------+-----------------+------+-----+---------------------+----------------+ Whats wrong here? /Piero Last edited by dsmith : 28-Feb-2004 at 11:48.
Reason: Use php tags for highlighting
|
|||
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| leave calculation | andy | MySQL / PHP Forum | 1 | 26-Jul-2003 11:10 |
| count date | skyloon | MySQL / PHP Forum | 2 | 01-Jul-2003 01:28 |
| Easily keep up to date with the latest PHP news (and any other for that matter) | jrobbio | MySQL / PHP Forum | 0 | 03-Jun-2003 03:54 |
| Date for in an e-mail | Allowee | MySQL / PHP Forum | 4 | 17-May-2003 09:05 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The