Wednesday, May 9, 2018

Insert DOB in mysql from laravel - development

Insert DOB in mysql from laravel

i have made a form with three different input fields i.e day, month and year and i need to insert it into database in ‘dob’ column in the type ‘date’. how can i insert them all with date format in one column.

<div>
 <input class="birthdayInput" type="number" name="birthday_day" id="birthday_day" size="2"  maxlength="2" value=""/>

<input class="birthdayInput" type="number" name="birthday_month" 
 id="birthday_month"  size="2" maxlength="2" value=""/>

 <input class="birthdayInput" type="number" name="birthday_year" id="birthday_year" size="4"
 maxlength="4" value=""/>

</div>


from Laravel Questions and Answers https://laravelquestions.com/php/insert-dob-in-mysql-from-laravel/
via Lzo Media

No comments:

Post a Comment