|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MDB2 - MDB2_Driver_mysqli::quoteSmart()
using MDB2_Driver_mysqli - v1.4.1. (stable)
I'm trying to use the quoteSmart() function since it says in the documentation that quote() is deprecated. However upon trying I get the following error: Quote:
Is their something I'm missing, or the stable version does not include the defined function yet? I bet it's something I'm missing, it always is. >.< |
|
#2
|
|||
|
|||
|
You're mixing two packages here:
- in DB quote() is deprecated (and quoteSmart() should be used) - in MDB2 quote() isn't deprecated (and quoteSmart() doesn't exist) And before you ask: Yes, it's better to use MDB2 than DB. |
|
#3
|
|||
|
|||
|
thanks, must've got confused from the docs.
I've been using MDB2 for over a year now, so I know the advantages it has over the older DB, which I have never used. |
|
#4
|
|||
|
|||
|
I have had to switch from MDB2 to DB (I needed the ODBC driver)
and had a questions about when to use quoteSmart Are there any methods that automatically escape any input to be used in sql statements? Do I need to use quoteSmart on methods that use placeholders like getOne, or when passing arrays of choices like to getAll, or simply using query instead of prepare/execute ? I saw in the MDB2 docs that certain methods automatically escape input, but cant find anything in DB. Thanks. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > MDB2 - MDB2_Driver_mysqli::quoteSmart() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|