The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I'm having an issue where I need to display data for user to edit in a <textarea> field. For instance, user enters following data:
Quote:
Quote:
I'm actually escaping the user input with this before sending it to a custom datamanager which I have attached. That's where the save takes place. PHP Code:
Then to diplay the data I loop through the SQL result as follows: PHP Code:
Thanks
|
|
#2
|
||||
|
||||
|
You don't have to escape it when using the datamanager, since they will call it for you. Only use it when sticking unsafe strings into queries.
|
|
#3
|
||||
|
||||
|
ah , i see. So the datamanager class already takes care of escaping, etc... I wasn't aware of that. I searched throughout class_dm.php for $db->escape_string but couldn't find it so i didn't think that was being handled.
Thanks, they should put you on staff here.
|
|
#4
|
||||
|
||||
|
It would be $this->dbobject->escape_string there.
|
|
#5
|
||||
|
||||
|
AH YES THAT'S RIGHT!, ok i'm learning, lol
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|