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