php sql where command to check for containg -



php sql where command to check for containg -

i string vaiable using post in php. want append string can utilize in sql query check containing string. want %string%

what doing gives me error:

$hotelname = '%'+hotelname_old+'%';

it should

$hotelname = "%'".$hotelname_old."'%";

php sql

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -