php-general | 2000071
Date: 07/12/00
- Next message: Olivier Clavel: "Re: [PHP] MySQL Connect Problem"
- Previous message: Fredrik Arild Takle: "[PHP] writing to txt-file! if and else!"
- In reply to: Mattias Hedman: "[PHP] Adding an DATETIME as a string to a mySQL databse...."
- Next in thread: Richard Lynch: "Re: [PHP] Adding an DATETIME as a string to a mySQL databse...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Try using NULL without ' 'as your insert value.
Matt
----- Original Message -----
From: Mattias Hedman <mattias <email protected>>
To: <php-general <email protected>>
Cc: <php-db <email protected>>
Sent: Wednesday, July 12, 2000 11:04 AM
Subject: [PHP-DB] Adding an DATETIME as a string to a mySQL databse....
> Hello all,
> I am having troubles adding an value to an mySQL database, the row is set
as
> DATETIME which should accept strings.
>
> When I build the string using DATE("Y-m-d H:i:s") in PHP and inserts it
into
> the database the only thing that gets added in the row is DATETIME default
> value (0000-00-00 00:00:00).
>
> Why?
> Please help.
>
> TIA, Greetings,
> Mattias Hedman
> --
> mattias.hedman <email protected>
> web programmer
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Olivier Clavel: "Re: [PHP] MySQL Connect Problem"
- Previous message: Fredrik Arild Takle: "[PHP] writing to txt-file! if and else!"
- In reply to: Mattias Hedman: "[PHP] Adding an DATETIME as a string to a mySQL databse...."
- Next in thread: Richard Lynch: "Re: [PHP] Adding an DATETIME as a string to a mySQL databse...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

