|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Input and mySQL
I am not sure if this is right forum, but well there is php, html and sql in this, so...
I am beginner and I am trying to fill form with values. I mean I am editing existing article (values are in mySQL database), so form is filled with current values... I am getting values out of database with mysql_query and mysql_fetch_array. But I have problem. When I use I get good result, but when I use I always get first word. When there is an empty space it doesn continue to fill form. Ofcourse I can use textares, but is there way how to get good results from input? |
|
#2
|
|||
|
|||
|
RE: Input and mySQL
You'll need to put quotes around the value. Otherwise, only the first word is treated as a part of the value... While you're at it, also use htmlspecialchars to encode the quotes and whatnot, so they get passed properly...
|
|
#3
|
|||
|
|||
|
RE: Input and mySQL
Thanks for tips, I will try them soon...
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Input and mySQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|