Load DataTime field

0

I'm trying to load a data field from the database, I tried to set the value in atributo value but did not succeed what is the best practice for this?

<input value="<?php echo @$linha[DAT_EHORA_EVENT];?>" id="DAT_EHORA_EVENT" name="DAT_EHORA_EVENT" type="datetime-local" placeholder="" class="input-large">
    
asked by anonymous 25.06.2015 / 14:25

1 answer

0

You are forgetting to wrap the field name with ASPAS (in your case, single quotation marks)

<input value="<?php echo @$linha['DAT_EHORA_EVENT'];?>" id="DAT_EHORA_EVENT" name="DAT_EHORA_EVENT" type="datetime-local" placeholder="" class="input-large">
    
06.07.2015 / 15:11