i am setting the value of a few textboxes using the data from the database as shown.
$qry="select * from branch where id=4";
$res=$con->query($qry);
$r=$res->fetch_assoc();
Actually i am printing the table with the textbox inside the echo statement as below:
echo '
<td>Incharge:</td><td><input type="text" name="incharge" size="38" value='.'$r["incharge"])'.'></td>';
But the problem is that it is only printing the first string in the textbox.for e.g.if the value of $r["incharge"] fetched is Ankur Lakhani
, but it is only printing Ankur
.
Any solution??