Re: Please Help !

From: Date: Tue, 08 Jul 2003 15:50:03 +0000
Subject: Re: Please Help !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154388@lists.php.net to get a copy of this message
look up two functions in the online manual. strtotime() and date() strtotime will give you a unix timestamp for just about any date possable, date will format it the way you need. to get it into a mySQL date field, basicaly, you do this: date("y-m-d", strtotime($_POST['date'])) where $_POST['date'] is whatever variable you used. - Anthony "Sean O'Reilly" <s.oreilly@sussexcoast.co.uk> wrote in message news:1057675256.17432.55.camel@sean.linnovations.co.uk... > Hi, > > I know this is really basic but i have a form for users to enter the > date of an event that i would like to store in a mysql database how do i > get the users input into the database in the right format. > > >

« previous php.general (#154388) next »