Escape string before inserting in a query |
I too prefer query binding too because as the CI documentation says... The secondary benefit of using binds is that the values are automatically escaped, producing safer queries. You don’t have to remember to manually escape data; the engine does it automatically for you.
@glorsh66, I've been able to write some pretty complex queries using the CI query builder...for example PHP Code: public function Complex_query($userid) |
Messages In This Thread |
Escape string before inserting in a query - by glorsh66 - 06-06-2018, 08:11 AM
RE: Escape string before inserting in a query - by InsiteFX - 06-06-2018, 09:01 AM
RE: Escape string before inserting in a query - by glorsh66 - 06-06-2018, 09:04 AM
RE: Escape string before inserting in a query - by glorsh66 - 06-06-2018, 11:46 AM
RE: Escape string before inserting in a query - by jreklund - 06-06-2018, 01:02 PM
RE: Escape string before inserting in a query - by php_rocs - 06-07-2018, 09:52 AM
RE: Escape string before inserting in a query - by glorsh66 - 06-26-2018, 03:27 AM
|