I am looking for a simple Paypal donation script.
After player completes a donation, he get (count) of coins,(auto edit MEMB_INFO coin count).
value = 100 coins cost 1 USD
example
$check_coins = mssql_query("SELECT coins FROM MEMB_COINS WHERE memb___id = '$custom'");
$coins_rows = mssql_num_rows($check_coins);
$new_coins = $new_coins * $coins_per_dollar;
if($coins_rows > 0){
mssql_query("UPDATE MEMB_COINS SET coins = coins + $new_coins where memb___id = '$custom'");
}else{
mssql_query("INSERT INTO MEMB_COINS (memb___id,coins) VALUES ('$custom','$new_coins')");
Hope you understand me, also if no one have that script, maybe tell how much cost to make this script?
