I am currently using a JSON encoded array to display the users in my database for an auto-suggest feature.
It looks something like this:
$sth = mysql_que
Try in this way:-
$temp = json_encode($json); //$json={"var1":"value1","var2":"value2"} $temp=substr($temp,0,-1); $temp.=',"variable":"'.$value.'"}';