Posted by J.O. Aho on 11/30/06 10:58
Gaga wrote:
> OK i will try.
> Do you know how to display db data in textbox ( e.g. user name )?
> I need that for editing of exiting users.
You need to fetch the row with the user data first (I assume you know how to
do that, or else take a look at
www.php.net/manual/en/function.mysql-fetch-array.php ), continue to assume you
have the user in the variable $row, which is an array returned by
mysql_fetch_array(), and the column name with the users name is called username.
<form ...>
<input type="text" value="<?PHP echo $row['username']; ?>">
....
</form>
//Aho
[Back to original message]
|