- changed status to resolved
Like doesn't produce valid SQL
Issue #10
resolved
Hello, thanks for such a great class!
Let's cut to the chase:
$kupci = $db->select('*')->from('saradnik')->like('naziv', 'test', 'both')->order_by('naziv', 'asc')->fetch();
Produces
SELECT * FROM `saradnik` `naziv` LIKE '%test%' ORDER BY `naziv` ASC
Obviously, it fails to inject WHERE after table name
Comments (2)
-
repo owner -
repo owner Issue
#11was marked as a duplicate of this issue. - Log in to comment
This bug has been fixed. Version v1.2.8 is added now. https://bitbucket.org/getvivekv/php-mysqli-class/src/a9fb3dd616b2911dc90c066c89500de28abc6868/?at=v1.2.8