php interface with gateway

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 7
Joined: Mon Oct 29, 2012 8:00 am

Wed Oct 31, 2012 5:49 am

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,


Post Reply