0
I have this code:
while($rows_cursos = mysqli_fetch_array($resultado_cursos)) {
$tabela1 .= '<td> <input type="date" name= "Data[]" id= "Data" value="<?php echo date("Y-m-d");?> <input type="time" required="" id="Hora" name="Hora[]" value="<?php echo date("H:i:s");?></td>';
}
But neither shows the current date nor the current time as shown in the image:
The problem is in the quotes:
value="<?php echo date("H:i:s");?>
put it like thisvalue="<?php echo date(\"H:i:s\");?>"
– rbz