Mysql query to get data which has single quotes in the field data? -


i have query

$qry="select * post_prop  project='abinandan's kailash'  , builder_name='abinandan-foundations-pvt-ltd'"; 

but iam not getting results?

escape quotes double quotes:

$qry="select * post_prop  project='abinandan''s kailash'  , builder_name='abinandan-foundations-pvt-ltd'"; 

you should enable display_errors , error_reporting in php.ini and/or remove @ in front of *_query command (if present) in order display errors. way, php have warned there syntax error.


Comments

Popular posts from this blog

HTTP/1.0 407 Proxy Authentication Required PHP -

curl - PHP fsockopen help required -

c# - Resource not found error -