Hello I get this error and I can not find what is wrong
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\SIE\HorasExtras\Lista_horasextras.php on line 154
Code:
echo "<button class=\"btn btn-info\" id=\"editarConsulta\" onclick=\"cambiarContenidos('#contenidos','HorasExtras/edita_horasextras.php?accion=editar&id=<?php echo $rowActividades['Id_horasextras']; ?>' );\">";
Instead of writing really eye-searing code that will cause headaches to parse, you can use variables, for example:
Departure:
That way:
$id
it available if you need it$onClick
one available too if you need it laterNOTE: It may be convenient to add text to the button....