->whereAdd() | ->limit() |
DB_DataObject | |
PEAR Manual | |
void $DB_DataObject->escape (
string $value
)
Similar to Pear DB's quote it will escape a value, without the quotes, so it can be used with a LIKE query.
string $value - the string you want to escape
This function can not be called statically.
Escaping a LIKE string
|
Sample SQL
SELECT * FROM PERSON WHERE name LIKE '%o\'brian%' |
->whereAdd() | ->limit() |
DB_DataObject | |
PEAR Manual | |