Why is not the same between query in php and query in SQL Server? -
i have cakephp project sql server, confused when running query:
result = $this->manager->query('select top(10) name, id vendors name n\'%'.$q.'%\'');
when set $q = 'hòa'
, run sql script in sql management studio, returns 2 result, when run in php returns nothing,
try this
result = $this->manager->query("select top(10) name, id vendors name n'%".$q."%'");
Comments
Post a Comment