Forum Moderators: coopster

Message Too Old, No Replies

extracting data to a textbox.

         

kEn0

1:59 pm on Mar 14, 2008 (gmt 0)

10+ Year Member


im new on php and mysql so i only knew the basics... i just want to know how to extract data from my database and put it on a textbox? i already tried mysql_fetch_array() but the problem is when there is a space in the data, it will not display... (example: $data = "My Php", when extracted from the database and inserted in a textbox it will look like this - $data = "My")...

Vis3R

4:57 pm on Mar 14, 2008 (gmt 0)

10+ Year Member



my guess for your cut string would be that you're not using " or ' on the html objects. for example, using value=my data would return only "my" in the textbox, while using value="my data" would return the whole string. If that's not fixing the problem, paste your code...

kEn0

1:22 am on Mar 15, 2008 (gmt 0)

10+ Year Member




System: The following message was spliced on to this thread from: http://www.webmasterworld.com/php/3601170.htm [webmasterworld.com] by dreamcatcher - 7:34 am on Mar. 15, 2008 (utc 0)


How can I extract data from my database and put them inside a textbox? i tried mysql_fetch_array() but the results is different... (EX: $data = "My Php", when extracted from the database and put inside a textbox it will display "My")...
How can I extract data from my database without cutting the data?