Hai guys,
I want to convert my result array to json format in php... Here is my code
$row = mysql_fetch_array($result)
Now i want to convert $row
to json format... I want to pass the json data to autocomplete plugin of jquery....
Hai guys,
I want to convert my result array to json format in php... Here is my code
$row = mysql_fetch_array($result)
Now i want to convert $row
to json format... I want to pass the json data to autocomplete plugin of jquery....
And if you have a version older than 5.2.0 then you can use any number of JSON encoding/decoding libraries. I think http://www.json.org/ has a list somewhere.