Re: Converting to a string

From: Date: Wed, 23 Mar 2005 21:30:38 +0000
Subject: Re: Converting to a string
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-211417@lists.php.net to get a copy of this message
Thanks guys, you were right - I needed to change the format of the field in the database. :D ----- Original Message ----- From: "Daniel Gerzo" <danger@rulez.sk> To: "PartyPosters" <sales@partyposters.co.uk>; <php-general@lists.php.net> Sent: Wednesday, March 23, 2005 8:58 PM Subject: Re: [PHP] Converting to a string Hello PartyPosters, Wednesday, March 23, 2005, 9:43:30 PM, si odoslal: > Hello guys, > i am using date("l dS of F Y h:i:s A") and want to put the value in a database as a string, > How do I converting it to a string, this is what I have got so far:- > $v_ship_date = date("l dS of F Y h:i:s A"); well, php doesn't really cares if you got string or bool or integer like c or pascal does. php is converting automatically integers to strings and so far, you can add your value to the database whithout any manual converting... > Lots of thanks. -- Later +----------==/\/\==----------+ (__) FreeBSD | DanGer <danger@rulez.sk> | \\\'',) The | DanGer@IRCnet ICQ261701668 | \/ \ ^ Power | http://danger.rulez.sk | .\._/_) To +----------==\/\/==----------+ Serve [ Ved evidenciu o svojich udajoch, je to dokaz tvojej prace. ]

« previous php.general (#211417) next »