I am trying to populate my text field with a value from the database.
my database field name is address and it is varchar type.
for eg: if i store "100 Johnr road" in the database for the address field
and using the following line in php program
while ($row=mysql_fetch_array($result))
$address=$row["address"];
printf("<input type=text name=dbaddress
value=%s>",$address);
returns only the value 100 and not 100 johnr road.
How to modify the above statement or how to achieve the full address value?
my database field name is address and it is varchar type.
for eg: if i store "100 Johnr road" in the database for the address field
and using the following line in php program
while ($row=mysql_fetch_array($result))
$address=$row["address"];
printf("<input type=text name=dbaddress
value=%s>",$address);
returns only the value 100 and not 100 johnr road.
How to modify the above statement or how to achieve the full address value?