Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
January 27, 2009, 8:52 pm
rate this thread
What I would like to do is make a string produced with json_encode()
type strings with json_encode() but am at a loss as to how to import
have tried using HTTP GET and the url of a PHP file that uses
json_encode() only but obviously that is not correct.
To put it slightly differently, how do I make a document or string
I have been googling for over two days now and cannot seem to find any
info about doing this. I would be most grateful for any assistance.
$string = json_encode($string);
echo 'var json_string = '.$string;
But personally I use xajax which handles all my js from within PHP,
though others tell me that jquery can do all that stuff.
- » Using PDO to insert data into a table and getting protocol violation SQLSTATE error
- — Previous thread in » PHP Scripting Forum