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
Post a Comment