I've got a problem with fetching info from a mysql database, and then putting it in a textfield. If I get the string "John Johnson" this would be presented as "John" in the textfield.
Here is some of my code:
$result = $this->query("SELECT name FROM personTab where personId=23");
$row = mysql_fetch_row($result);
$personName=$row[1];
When I put in this:
echo '$personName';
it would print John Johnsonabove the textfield, so there is nothing wrong with the sql...
$result = $this->query("SELECT name FROM personTab where personId=23");
$row = mysql_fetch_row($result);
$personName=$row[1];
<table>
<tr>
<td><label>Navn:</label></td>
<td><input type="text" name="personName" value="$personName"></td>
</tr>
</table>
Thanks T.
<table>
<tr>
<td><label>Navn:</label></td>
<td><input type="text" name="personName" value="$personName"></td>
</tr>
</table>
Thanks T.