makecashnow.biz

Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]
Print
Author Topic: [RESOLVED] Yob 4.0 With Paypal  (Read 248 times)
Newbie
*
Posts: 40


View Profile Email
« on: February 16, 2009, 02:48:35 PM »
Hello i have made Yourownbux ptc with PayPal, but i have one problem, i have mysql command when users request refferals command add request dats to database and shows PayPal buy now button, but i dont understand why this command dont send dats to mysql server. There is a code wrom my payments.php file :
Code:
<?php
include ("includes/database/database.inc.php"); $myDb->connect(); $query = "INSERT INTO yob_buyref (customer, amount, refset, pemail, ip) VALUES('$user','1','$refset', '$pemail','$purchaseip')"; mysql_query($query) or die(mysql_error()); $myDb->close();?>

<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="">
<input type="hidden" name="item_name" value="<?= $purchaseitemname;?>">
<input type="hidden" name="amount" value="<?= $purchaseitemprice;?>">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="MX">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</center>
Logged
Newbie
*
Posts: 40


View Profile Email
« Reply #1 on: February 16, 2009, 02:50:26 PM »
I have online YOB 4.0 with this many time ago and all work great with this, but now i just copy files from old bux and this command dont work! Whats wrong? Please help!
Logged
Full Member
***
Posts: 213

vietcong_2@hotmail.it
View Profile WWW Email
« Reply #2 on: February 16, 2009, 03:50:32 PM »
you have yourownbux with paypal??

please send meeeeeee pleaseeeeeeee

send me via mpppppppppppp
Logged

Newbie
*
Posts: 40


View Profile Email
« Reply #3 on: February 17, 2009, 05:20:05 AM »
If someone help me fix this problem i will upload it!
Logged
Full Member
***
Posts: 169

liamt2k6@tiscali.co.uk
View Profile WWW Email
« Reply #4 on: February 18, 2009, 05:53:30 AM »
QUOTE (Rihijs @ Feb 17 2009, 02:20 PM) <{POST_SNAPBACK}>
Quote
If someone help me fix this problem i will upload it![/b]

hello ok heres the fix


Replce this
QUOTE
Quote
include ("includes/database/database.inc.php"); $myDb->connect(); $query = "INSERT INTO yob_buyref (customer, amount, refset, pemail, ip) VALUES('$user','1','$refset', '$pemail','$purchaseip')"; mysql_query($query) or die(mysql_error()); $myDb->close();?>[/b]

with this

QUOTE
Quote
include ("includes/database/database.inc.php"); $myDb->connect(); $query = "INSERT INTO yob_buyref (customer, amount, refset, pemail, ip) VALUES('$user', '1', '$refset', '$pemail', '$purchaseip')"; mysql_query($query) or die(mysql_error()); $myDb->close();?>[/b]


Look at the diffrence between the commands.
lol the insert query should have the same mout of space between each variable being inserted.
that should do it any more errors pm me
Logged
Pages: [1]
Print
 
Jump to: