How to set a value for the input type 'datetime-local'?

后端 未结 10 1281
猫巷女王i
猫巷女王i 2020-12-25 11:59

I tried this:

\" class=\"date\" name=\"start\" REQUIRED>

H

10条回答
  •  梦毁少年i
    2020-12-25 12:20

    $tripid=$_REQUEST['tripid'];
    $sql="SELECT * FROM tripdetails WHERE trip_id='".$tripid."'";
    $trpresult=mysqli_query($connect,$sql);
      if(mysqli_num_rows($trpresult)==1)
        {
          $trpdetails=mysqli_fetch_assoc($trpresult);
        }
     $trpstartdate = substr_replace($trpdetails['trip_start_date'],T,11,0);
    
     $string = preg_replace('/\s+/', '', $trpstartdate);
    

    This is Html part

    
    

提交回复
热议问题