By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,746 Members | 1,849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,746 IT Pros & Developers. It's quick & easy.

display database record

P: n/a
i have a php script that read from mysql and display then in textbox.
I have problem with the way textbox display the data.

<input type=text name="package_name" size=20 maxlength=10
value='.$package['package_name'].'>

when the package_name is 'china tour' it will only show china in the
text box. How can i show all the content of the record?
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jo****@yahoo.com says...
i have a php script that read from mysql and display then in textbox.
I have problem with the way textbox display the data.

<input type=text name="package_name" size=20 maxlength=10
value='.$package['package_name'].'>

when the package_name is 'china tour' it will only show china in the
text box. How can i show all the content of the record?


Double-quote the value.

<input type=text name="package_name" size=20 maxlength=10 value="'.
$package['package_name'].'">

Geoff M
Jul 17 '05 #2

P: n/a
thanks gmuldoon

gmuldoon <gm*************@scu.edu.au> wrote in message news:<MP************************@news.asgard.net.a u>...
jo****@yahoo.com says...
i have a php script that read from mysql and display then in textbox.
I have problem with the way textbox display the data.

<input type=text name="package_name" size=20 maxlength=10
value='.$package['package_name'].'>

when the package_name is 'china tour' it will only show china in the
text box. How can i show all the content of the record?


Double-quote the value.

<input type=text name="package_name" size=20 maxlength=10 value="'.
$package['package_name'].'">

Geoff M

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.