title: get the data to datetime-local from php
body: <p>I have a datatype "TIMESTAMP" in database. And I pass the value by using "datetime-local" attribute in html.</p>
  
  <pre><code>&lt;input type="datetime-local" id="start_time" class="form-control" name="start_time"/&gt;
  </code></pre>
  
  <p>this works fine and i can upload the date and time to database. But when i retrieve the data form database for editing, it doesn't work.</p>
  
  <p><strong>PHP Code</strong></p>
  
  <pre><code>$query="SELECT * FROM hire WHERE hire_id='$id'";
  $query_run=mysqli_query($con,$query);
  $row=mysqli_fetch_array($query_run);
  </code></pre>
  
  <p><strong>HTML Code</strong></p>
  
  <pre><code>&lt;input type="datetime-local" value="&lt;?php echo $row['start_time']; ?&gt;" /&gt;
  </code></pre>
  
  <p>The above php within the html shows nothing as a result. What is the fault here?</p>