?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Re: Date + Time Stamp
Author:??(66.62.43.---)
Date:???01-13-04 13:55

No single-quotes, just a 0:

$sql = "INSERT INTO tablename(email, datetime) VALUES ('$email', 0)";

And for a date column type, that should give you now. Be careful with timestamp column types, they change to now on every update (the first one does anyway).

?Topics Author? Date
?Date + Time Stamp??new
Bowmah 01-13-04 13:32?
?Re: Date + Time Stamp??new
Phillip Harrington 01-13-04 13:37?
?Re: Date + Time Stamp??new
Bowmah 01-13-04 13:46?
?Re: Date + Time Stamp??new
Phillip Harrington 01-13-04 13:55?
?Re: Date + Time Stamp??new
Bowmah 01-13-04 13:59?
?Re: Date + Time Stamp??new
Phillip Harrington 01-13-04 14:08?
?Re: Date + Time Stamp??new
Bowmah 01-13-04 15:16?
?Re: Date + Time Stamp??new
Phillip Harrington 01-13-04 15:19?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > No single-quotes, just a 0: > > $sql = "INSERT INTO tablename(email, datetime) VALUES > ('$email', 0)"; > > And for a date column type, that should give you now. Be > careful with timestamp column types, they change to now on > every update (the first one does anyway). ">??

Provided By
Phorum