Open paveljanda opened 7 years ago
Jednoduchý zpusob je:
$db->table('table_name')->where("neco LIKE ?", "%{$search}%");
Spravně, ale:
$db->table('table_name')->where('name LIKE ?',new \Nette\Database\SqlLiteral($db->getSupplementalDriver()->formatLike($search, 0)));
zroj: http://rjwebdesign.cz/blog/nette/20140826-jak-spravne-pouzit-like-v-nette-database
author: chemix
Jednoduchý zpusob je:
Spravně, ale:
zroj: http://rjwebdesign.cz/blog/nette/20140826-jak-spravne-pouzit-like-v-nette-database