Hi All,
How can I assign the value from a DB query to a textbox
I would have thought it would be something like:
$myValue = $row["DBValue"];
and then on the form
<input type = text name = myValue value = $myValue>
The form is created by a function which is used in other places as well so, sometimes it needs to be blank (when I wish to add something to the DB) and other times it needs the value from the DB.
TIA
Bastien
There are many ways to skin this cat,
but it still tastes like chicken
How can I assign the value from a DB query to a textbox
I would have thought it would be something like:
$myValue = $row["DBValue"];
and then on the form
<input type = text name = myValue value = $myValue>
The form is created by a function which is used in other places as well so, sometimes it needs to be blank (when I wish to add something to the DB) and other times it needs the value from the DB.
TIA
Bastien
There are many ways to skin this cat,
but it still tastes like chicken