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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -