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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -