1 year ago
#78981
Toàn Kiều
CAKEPHP 3: Like condion special character paginate
I'm having trouble finding likes with special characters as follows
in the database i have a record with the name Toan"123
now, in cakephp 3 i use query ORM
$sqlSub = $sysLogTable
->find('all', [
'fields' => array('id' ,'name')
'conditions' => array("name LIKE" => "%Toan"%")
])
->toArray();
but I don't get Toan"123
. How to get Toan"123
with sql above.
Please help me, I'm stuck
cakephp
sql-like
query-builder
cakephp-3.x
0 Answers
Your Answer