I try to add a row of mysql query into JSON whit php. I use this code:
public function lugaresCercanos($lng, $lat, $distance){ $result=mysql_query(\"SELECT n
The \ is to escape the quotes (") that are part of the response.
Use stripslashes() to strip these out.
stripslashes()
When a string wrapped in quotes contains quotes, they have to be escaped. The escape character in php is \.
\