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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -