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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -