Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 02-22-2012, 12:37 AM   #1
mohanraaj's Avatar
Join Date: Feb 2012
Location: chennai, India
Posts: 5
Default How to Load JSON data with PHP and MySQL??

I`m very much exited today. Because i have started learning some new functionality techniques...

but the problem is i dont know anything about json.... if you guys have any reference links to learn the JSON, it will be appreciable....

well while searching for the examples i got this sample code

PHP Code:

//require_once "json/JSON.php";

//create a new instance of Services_JSON
$json = new Services_JSON();

//convert php object to json 
$value = array('foo''bar', array(12'baz'), array(3, array(4)));
$output $json->encode($value);

// prints: ["foo","bar",[1,2,"baz"],[3,[4]]]

// accept incoming POST data, assumed to be in JSON notation
$input file_get_contents('php://input'1000000);
$value $json->decode($input);

if you guys have any idea of how to learn it with best possible examples, please discuss here...

thanks in advance....
mohanraaj is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:20 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com