I am having trouble finding a syntax that works in this query to receive JSON data:
$info ='".mysql_real_escape_string ($_GET['clientlist'])."';
$result = mysql_query("SELECT clientname FROM `cms_client` WHERE clientname ='$info' ORDER BY clientname ASC");
When I put this in my browser: http://mydomain.com/myfile.php?clientname=Redbox
I get an empty response.
When I change my query to:
//$info ='".mysql_real_escape_string ($_GET['clientlist'])."';
$result = mysql_query("SELECT clientname FROM `cms_client` WHERE clientname ='Redbox' ORDER BY clientname ASC");
When I put this in my browser: http://mydomain.com/myfile.php
The database responds with "Redbox"
Could someone please help me with the correct syntax?