Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Oriole Computing
Sorry team, i guess am in the wrong mailing list. The good news is that it
has now worked thanks to Toby's solution.. the error was my typing problem
...

Thanx Tobby!!!

Warm Regards



*SUPPORT TEAMORIOLE COMPUTING*

*1938 B1 MUNGWI ROAD*

*LUSAKAZAMBIA*

*Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com



On Thu, Jun 19, 2014 at 4:15 PM, Oriole Computing  wrote:

> Now it says PHP Notice:  Undefined index: responsecode
>
> Warm Regards
>
>
>
> *SUPPORT TEAMORIOLE COMPUTING*
>
> *1938 B1 MUNGWI ROAD *
>
> *LUSAKAZAMBIA*
>
> *Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com
> 
>
>
> On Thu, Jun 19, 2014 at 4:09 PM, Toby Hart Dyke  wrote:
>
>>
>>
>> My error! This:
>>
>>
>> $responseCode = $result[return]['responsecode'];
>>
>> should have been
>>
>>
>> $responseCode = $result['return']['responsecode'];
>>
>>
>> The other responses have been rather more elegant, though I think my
>> solution is a little more readable - i.e., I had to think about what was
>> happening for those ones!
>>
>>   Toby
>>
>>
>> On 6/19/2014 9:50 AM, Oriole Computing wrote:
>>
>>> Hi Toby,
>>>
>>> my response is in variable $result so i run the code as below
>>>
>>> $responseCode = $result[return]['responsecode'];
>>>
>>> but getting this error: PHP Parse error:  syntax error, unexpected
>>> T_RETURN, expecting ']
>>>
>>> Warm Regards
>>>
>>>
>>>
>>> *SUPPORT TEAMORIOLE COMPUTING*
>>>
>>> *1938 B1 MUNGWI ROAD*
>>>
>>> *LUSAKAZAMBIA*
>>>
>>> *Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com
>>> 
>>>
>>>
>>> On Thu, Jun 19, 2014 at 12:23 PM, Pritoj Singh 
>>> wrote:
>>>
>>>  foreach($arr['return'] as $key=>$val){
 $$key=$val;
 }


 On Thu, Jun 19, 2014 at 3:48 PM, Toby Hart Dyke 
 wrote:

  If you have the response in a variable, $response:
>
> $responseCode = $response[return]['responsecode'];
> $responseMessage = $response[return]['responseMessage'];
> $transactionID = $response[return]['transactionID'];
>
>
>
>>
>> --
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>


Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Oriole Computing
Now it says PHP Notice:  Undefined index: responsecode

Warm Regards



*SUPPORT TEAMORIOLE COMPUTING*

*1938 B1 MUNGWI ROAD*

*LUSAKAZAMBIA*

*Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com



On Thu, Jun 19, 2014 at 4:09 PM, Toby Hart Dyke  wrote:

>
>
> My error! This:
>
>
> $responseCode = $result[return]['responsecode'];
>
> should have been
>
>
> $responseCode = $result['return']['responsecode'];
>
>
> The other responses have been rather more elegant, though I think my
> solution is a little more readable - i.e., I had to think about what was
> happening for those ones!
>
>   Toby
>
>
> On 6/19/2014 9:50 AM, Oriole Computing wrote:
>
>> Hi Toby,
>>
>> my response is in variable $result so i run the code as below
>>
>> $responseCode = $result[return]['responsecode'];
>>
>> but getting this error: PHP Parse error:  syntax error, unexpected
>> T_RETURN, expecting ']
>>
>> Warm Regards
>>
>>
>>
>> *SUPPORT TEAMORIOLE COMPUTING*
>>
>> *1938 B1 MUNGWI ROAD*
>>
>> *LUSAKAZAMBIA*
>>
>> *Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com
>> 
>>
>>
>> On Thu, Jun 19, 2014 at 12:23 PM, Pritoj Singh  wrote:
>>
>>  foreach($arr['return'] as $key=>$val){
>>> $$key=$val;
>>> }
>>>
>>>
>>> On Thu, Jun 19, 2014 at 3:48 PM, Toby Hart Dyke 
>>> wrote:
>>>
>>>  If you have the response in a variable, $response:

 $responseCode = $response[return]['responsecode'];
 $responseMessage = $response[return]['responseMessage'];
 $transactionID = $response[return]['transactionID'];



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


Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Aziz Saleh
On Thu, Jun 19, 2014 at 10:09 AM, Toby Hart Dyke  wrote:

>
>
> My error! This:
>
>
> $responseCode = $result[return]['responsecode'];
>
> should have been
>
>
> $responseCode = $result['return']['responsecode'];
>
>
> The other responses have been rather more elegant, though I think my
> solution is a little more readable - i.e., I had to think about what was
> happening for those ones!
>
>   Toby
>
>
> On 6/19/2014 9:50 AM, Oriole Computing wrote:
>
>> Hi Toby,
>>
>> my response is in variable $result so i run the code as below
>>
>> $responseCode = $result[return]['responsecode'];
>>
>> but getting this error: PHP Parse error:  syntax error, unexpected
>> T_RETURN, expecting ']
>>
>> Warm Regards
>>
>>
>>
>> *SUPPORT TEAMORIOLE COMPUTING*
>>
>> *1938 B1 MUNGWI ROAD*
>>
>> *LUSAKAZAMBIA*
>>
>> *Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com
>> 
>>
>>
>> On Thu, Jun 19, 2014 at 12:23 PM, Pritoj Singh  wrote:
>>
>>  foreach($arr['return'] as $key=>$val){
>>> $$key=$val;
>>> }
>>>
>>>
>>> On Thu, Jun 19, 2014 at 3:48 PM, Toby Hart Dyke 
>>> wrote:
>>>
>>>  If you have the response in a variable, $response:

 $responseCode = $response[return]['responsecode'];
 $responseMessage = $response[return]['responseMessage'];
 $transactionID = $response[return]['transactionID'];



>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Nothing to do with DB. Wrong mailing list: http://php.net/mailing-lists.php


Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Toby Hart Dyke



My error! This:

$responseCode = $result[return]['responsecode'];

should have been

$responseCode = $result['return']['responsecode'];


The other responses have been rather more elegant, though I think my 
solution is a little more readable - i.e., I had to think about what was 
happening for those ones!


  Toby

On 6/19/2014 9:50 AM, Oriole Computing wrote:

Hi Toby,

my response is in variable $result so i run the code as below

$responseCode = $result[return]['responsecode'];

but getting this error: PHP Parse error:  syntax error, unexpected
T_RETURN, expecting ']

Warm Regards



*SUPPORT TEAMORIOLE COMPUTING*

*1938 B1 MUNGWI ROAD*

*LUSAKAZAMBIA*

*Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com



On Thu, Jun 19, 2014 at 12:23 PM, Pritoj Singh  wrote:


foreach($arr['return'] as $key=>$val){
$$key=$val;
}


On Thu, Jun 19, 2014 at 3:48 PM, Toby Hart Dyke  wrote:


If you have the response in a variable, $response:

$responseCode = $response[return]['responsecode'];
$responseMessage = $response[return]['responseMessage'];
$transactionID = $response[return]['transactionID'];





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



Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Oriole Computing
Hi Toby,

my response is in variable $result so i run the code as below

$responseCode = $result[return]['responsecode'];

but getting this error: PHP Parse error:  syntax error, unexpected
T_RETURN, expecting ']

Warm Regards



*SUPPORT TEAMORIOLE COMPUTING*

*1938 B1 MUNGWI ROAD*

*LUSAKAZAMBIA*

*Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com



On Thu, Jun 19, 2014 at 12:23 PM, Pritoj Singh  wrote:

> foreach($arr['return'] as $key=>$val){
> $$key=$val;
> }
>
>
> On Thu, Jun 19, 2014 at 3:48 PM, Toby Hart Dyke  wrote:
>
> >
> > If you have the response in a variable, $response:
> >
> > $responseCode = $response[return]['responsecode'];
> > $responseMessage = $response[return]['responseMessage'];
> > $transactionID = $response[return]['transactionID'];
> >
> > This isn't really the right list to ask this question - nothing to do
> with
> > databases!
> >
> >   Toby
> >
> >
> >
> > On 6/19/2014 1:40 AM, Oriole Computing wrote:
> >
> >> dear List,
> >>
> >> we have the following var_dump output from a soap response
> >>
> >> array(1) {
> >>["return"]=>
> >>array(3) {
> >>  ["responseCode"]=>
> >>  string(1) "3"
> >>  ["responseMessage"]=>
> >>  string(39) "Duplicate RequestID, Transaction failed"
> >>  ["transactionID"]=>
> >>  string(21) "104454061823201453721"
> >>}
> >> }
> >>
> >>
> >> could you advise us how we can get responseCode, responseMessage and
> >> transactionID into individual php variables?
> >>
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> ___
> Pritoj Singh
> Ph +91-9876270817
> Skype : pritojsinghwork
>


Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Pritoj Singh
foreach($arr['return'] as $key=>$val){
$$key=$val;
}


On Thu, Jun 19, 2014 at 3:48 PM, Toby Hart Dyke  wrote:

>
> If you have the response in a variable, $response:
>
> $responseCode = $response[return]['responsecode'];
> $responseMessage = $response[return]['responseMessage'];
> $transactionID = $response[return]['transactionID'];
>
> This isn't really the right list to ask this question - nothing to do with
> databases!
>
>   Toby
>
>
>
> On 6/19/2014 1:40 AM, Oriole Computing wrote:
>
>> dear List,
>>
>> we have the following var_dump output from a soap response
>>
>> array(1) {
>>["return"]=>
>>array(3) {
>>  ["responseCode"]=>
>>  string(1) "3"
>>  ["responseMessage"]=>
>>  string(39) "Duplicate RequestID, Transaction failed"
>>  ["transactionID"]=>
>>  string(21) "104454061823201453721"
>>}
>> }
>>
>>
>> could you advise us how we can get responseCode, responseMessage and
>> transactionID into individual php variables?
>>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
___
Pritoj Singh
Ph +91-9876270817
Skype : pritojsinghwork


Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-19 Thread Toby Hart Dyke


If you have the response in a variable, $response:

$responseCode = $response[return]['responsecode'];
$responseMessage = $response[return]['responseMessage'];
$transactionID = $response[return]['transactionID'];

This isn't really the right list to ask this question - nothing to do 
with databases!


  Toby


On 6/19/2014 1:40 AM, Oriole Computing wrote:

dear List,

we have the following var_dump output from a soap response

array(1) {
   ["return"]=>
   array(3) {
 ["responseCode"]=>
 string(1) "3"
 ["responseMessage"]=>
 string(39) "Duplicate RequestID, Transaction failed"
 ["transactionID"]=>
 string(21) "104454061823201453721"
   }
}


could you advise us how we can get responseCode, responseMessage and
transactionID into individual php variables?


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



Re: [PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-18 Thread Karl DeSaulniers


Sent from losPhone

> On Jun 19, 2014, at 12:40 AM, Oriole Computing  
> wrote:
> 
> dear List,
> 
> we have the following var_dump output from a soap response
> 
> array(1) {
>  ["return"]=>
>  array(3) {
>["responseCode"]=>
>string(1) "3"
>["responseMessage"]=>
>string(39) "Duplicate RequestID, Transaction failed"
>["transactionID"]=>
>string(21) "104454061823201453721"
>  }
> }
> 
> 
> could you advise us how we can get responseCode, responseMessage and
> transactionID into individual php variables?
> 
> Warm Regards
> 
> 
> 
> *SUPPORT TEAMORIOLE COMPUTING*
> 
> *1938 B1 MUNGWI ROAD*
> 
> *LUSAKAZAMBIA*
> 
> *Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com
> 

Don't know if this will answer but may put you on the right path. 

http://stackoverflow.com/questions/16697616/getting-value-from-soap-response-in-php

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



[PHP-DB] VAR_DUMP INTO PHP VARIABLES

2014-06-18 Thread Oriole Computing
dear List,

we have the following var_dump output from a soap response

array(1) {
  ["return"]=>
  array(3) {
["responseCode"]=>
string(1) "3"
["responseMessage"]=>
string(39) "Duplicate RequestID, Transaction failed"
["transactionID"]=>
string(21) "104454061823201453721"
  }
}


could you advise us how we can get responseCode, responseMessage and
transactionID into individual php variables?

Warm Regards



*SUPPORT TEAMORIOLE COMPUTING*

*1938 B1 MUNGWI ROAD*

*LUSAKAZAMBIA*

*Skype:* oriolecomputing | *Url:* oriolecomputing.blogspot.com