Olav Drageset writes:

> I cannot get timestamp to contain a time value different from zero.
> $tid = "NOW(YY-MM-DD HH:MM:SS)";
> $sql .= "VALUES ('$domainName', '$payPerYear', '$nxtPayDay', '$tid', 

You're trying to INSERT the string constant 'NOW(YY-MM-DD HH:MM:SS)'
which will be converted into the number 0. Lose the quotes, and
the stuff between the parentheses. (NOW() doesn't take any arguments.)

//C

-- 
 Carl Troein - Círdan / Istari-PixelMagic - UIN 16353280
 [EMAIL PROTECTED] | http://pixelmagic.dyndns.org/~cirdan/
 Amiga user since '89, and damned proud of it too.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to