discuss.answer
-
☆ A M B ☆
- 24,524 Posts
oh that's why I'm having a hard time to find it
thanks for that susan
but I have another question is I want to put a function for example escape function for escaping special character in string when inserting in database where should I put it?
I having a hard time to escape characters when inserting to database
thank you very for you reply!
-
☆ A M B ☆
- 24,524 Posts
If you are doing things properly using xPDO you don't have to, xPDO takes care of it for you. In fact, xPDO will even use prepared statements, improving the security of your database access.
https://forums.modx.com/thread/82234/encouraging-the-use-of-prepared-statements-in-modx-documentation
http://rtfm.modx.com/xpdo/2.x/overview
http://bobsguides.com/custom-db-tables.html