Hi All
Can anyone give me an idea to solve the problem.. My Problem is ,, I want to Retrieving data from database and displaying in textbox... If anybody have link of some good tutorial on this pls let me know..Or if anybody can explain I would be very thankful...
Hi,
I've seen your last post regarding inserting data problem so i guess you know how to use PHP to get data.. and put it them into variable. So you can simple do the following to display it in the text box...
1.
[PHP]
<?php
//your php code for fetching data and geting them into variable
?>
<input type="text" name="xyz" value=<?php echo $val; ?> >
[/PHP]
or
2.
[PHP]
<?php
//your php code for fetching data and geting them into variable
echo "<input type=\"text\" name=\"xyz\" value='$val'>";
[/PHP]
You can use either of the way... just be careful with escaping " in second example..
This is not related to your problem exactly but you may find
this
thread useful for comparision for above two ways