Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

php interface with gateway

Codes here !

Moderators: macek, egami, gesf

php interface with gateway

Postby andz1982 » 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]'";
$result=mysql_query($query);
$row= mysql_fetch_assoc($result);
$query2="SELECT userlastname FROM members WHERE Username='$_SESSION[Username]'";
$result2=mysql_query($query2);
$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,

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

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.