how to display date from database to input type=date in php

477
April 19, 2017, at 2:12 PM

i have a field from my database which is start/end date sample fields is

sample field

start_date   |   end_date
2017-04-19   |   2017-04-23

what i want to do is to display this data to my:

<input type="date" name= "start_date" value="<?php echo $value['start_date']?>">

but what happen is it doesn't display anything... i tried to use

<input type="date" name= "start_date" value="<?php echo date('Y-m-d',strtotime($value["start_date"]))?>">

but it displays a different date which is not from my database.. any suggestion to display the date data from my db to the input type="date" ??

Rent Charter Buses Company
READ ALSO
AWS RDS + INTO OUTFILE

AWS RDS + INTO OUTFILE

I understand that we can't do a INTO OUTFILE when we are dealing with RDS

559
Display two similar queries in one table

Display two similar queries in one table

I'm trying to write a query which will return which garment generated the most revenue during the last three months compared to the same period last yearI want to display the results in one table

226
Mysql Update on Update trigger

Mysql Update on Update trigger

I have a Denormalized database where I have the total points of other table into the driver tableI want to update the total points of the table driver when I update the table where the points are

315