Welcome Guest, Not a member yet? Register   Sign In
Restfull JSON Array Help
#3

(04-07-2016, 02:44 AM)EricP Wrote:
(04-07-2016, 12:03 AM)Try Wrote:
PHP Code:
$input $_REQUEST['your_request_data_name']; //Set this in your javascript (ajax request)
$data json_decode($inputtrue);

$code $data->code;
$store $data->store

"total" is not defined in your JSON.

thanks for your reply sorry but I'm still bit confused about this part
PHP Code:
$input $_REQUEST['your_request_data_name']; //Set this in your javascript (ajax request) 

the data is coming from an external source that is connecting to out api. the api is working I just not sure how to access the items array.

when I echo items all it prints is the word "Array"
Reply


Messages In This Thread
Restfull JSON Array Help - by BeVirtual - 04-07-2016, 12:03 AM
RE: Restfull JSON Array Help - by EricP - 04-07-2016, 02:44 AM
RE: Restfull JSON Array Help - by BeVirtual - 04-07-2016, 12:20 PM
RE: Restfull JSON Array Help - by Tpojka - 04-07-2016, 05:11 PM
RE: Restfull JSON Array Help - by BeVirtual - 04-07-2016, 10:00 PM
RE: Restfull JSON Array Help - by paulkd - 04-08-2016, 01:17 AM
RE: Restfull JSON Array Help - by BeVirtual - 04-08-2016, 01:35 AM
RE: Restfull JSON Array Help - by paulkd - 04-08-2016, 02:11 AM
RE: Restfull JSON Array Help - by BeVirtual - 04-08-2016, 07:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB