I am trying to query a BDD with php to show the results through an HTML input.
To show the result I do the following:
while($fila=mysqli_fetch_array($resultados, MYSQLI_ASSOC)){
$emp = $fila['Emp_Nom'];
{
And I show it through the input like this:
<input type="text" readonly value=<?php echo $emp ?>>
The code shows me the text but only the first word where there is a space.
To try to solve it instead of using a input
I used a textarea
and I modified it with css so that it has the same appearance as input
.
Is there any way to enter the full results of a query in input
?
Thanks in advance!