Page 1 of 1

php interface with gateway

Posted: Wed Oct 31, 2012 5:49 am
by andz1982
Hi there,

I'm having a slight problem...when trying to pass certain details to the payment gateway, such as the user's name and surname it is returning resource id...(not echoing as it should)...I tried a different method, using the below code and for some reason it is posting blank:

$query="SELECT userfirstname FROM members WHERE Username='$_SESSION[Username]'";
$row= mysql_fetch_assoc($result);
$query2="SELECT userlastname FROM members WHERE Username='$_SESSION[Username]'";
$row2= mysql_fetch_assoc($result2);

andthe part that actually posts to the gateway is this:

"x_first_name" => $row['userfirstname'],
"x_last_name" => $row2['userlastname'],

As far as i can tell the syntax is correct, but i could be completely wrong....

Any help would be very much appreciated,