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

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

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -