Re: Insert Data Into Mysql
| From: | Jim Giner | Date: | Fri, 10 Jan 2014 22:36:27 +0000 |
| Subject: | Re: Insert Data Into Mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322667@lists.php.net to get a copy of this message | ||
On 1/10/2014 4:53 PM, Robert wrote:
I have a date field on an html form that users may leave blank. If they do leave it blank I want to write the date 01/01/1901 into the mysql table. How can I accomplish this and where in my .php script file should I put the code? Thank You, Robert flahurr@comcast.net Why would you want to put any value in there? Leave it blank. Are you editing the input to prevent someone from actually entering that date?Where to put this in your php script? That's up to you certainly, but I would make sure it was done before I posted my record.