Formatting output with json_encode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am using json_encode to output the results of a mySQL query which is
part of a jquery & ajax.  

$result = json_encode($array);
echo $result;

The output on my screen is:

{0:"John 14:27","verse_reference":"John 14:27"}

How do I format json_encode output?  I would like 

John 14:27

to be what is displayed.

Ron


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux