|
#1
|
|||
|
|||
|
Hello.
my script gives a mysql error when I enter the apostrophe ' in a text area. does anyone know what could be causing it? I did not write the script, but someone else did. thanks. |
|
#2
|
|||
|
|||
|
Whoever wrote the script didnt program the form content to be cleaned before being sent to the database. You have to escape the apostrophe and quotes with a \.
IE: \' - html substitute = ' \" - html substitute = " \n = newline \t = tab |
|
#3
|
|||
|
|||
|
Quote:
Never ever pass any variable that a user enters to DB without first sterilizing it! There are a dozen way to sterilize, clean a user input do google for "sql injection" and "sterilize sql" for more info. But remember to do the fix asap!
__________________
|
|
#4
|
|||
|
|||
|
A friend wrote this for me, I don't know any coding. anyone willing to help me out?
|
|
#5
|
|||
|
|||
|
so the textarea is accessible by the visitors? if so, do PM me the url & I'll have a look
__________________
|
|
#6
|
|||
|
|||
|
I think I will just go ahead and get a programmer to recode it. Would be easier than trying to fix all the bugs.
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Editing text in images / editing text in flash | mdawg | Web Hosting Services | 9 | 03-23-2009 11:51 AM |
| MySQL Error | Kemistry | Shared Hosting Support | 3 | 06-12-2006 11:50 AM |
All times are GMT -5. The time now is 05:45 PM.










