Hello good afternoon I need to pass value from mysql to input (text box), I'm doing it in the following way but it throws me the following error:
$conexion=mysqli_connect($nombre_host,$nombre_usuario,$contrasena_usuario,$nombre_bd);
$consulta="SELECT * FROM clientes WHERE cedula='08522002'";
$resultados=mysqli_query($conexion,$consulta);
$fila=mysqli_fetch_row($resultados);
echo "<script type='text/javascript'>
document.getElementById('nombre_cliente').value =" . $fila[1] . "</script>";
}