Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
I am querying a field which contains JSON data. but
json_decode($result)
gives an output like: json_decode expects parameter to be string, resource given in line.
$result=mysql_query("SELECT values FROM 'table' LIMIT 0,1");
Now how do I get the string output? Why is that output as resource and not string?