Need more info to find the problem send me the page that has the error on it
Do my fix it fast have lot work on
download/forms/paypalsettings_add.php..When logged into admin under Create a PayPal Profile (BUY NOW)..After filling in the paypal addy, return url, cancel url and selecting the button to display I click apply, thats when I get the error.. I get the same error when I try to add a Profile under "ADD to CART"
UPDATE: This is actually the page the error is displayed on download/app/pa_ad.php
Here is the code in the file:
$idnumber = $_POST['idnumber'];
$reciever_email = $_POST['reciever_email'];
$image_url = $_POST['image_url'];
$return = $_POST['return'];
$cancel_return = $_POST['cancel_return'];
$image = $_POST['image'];
$currency_code = $_POST['currency_code'];
$type = $_POST['type'];
if (empty($idnumber)) {
echo 'You are required to enter an ID number for this item';
die();
}
$SQL = "SELECT * from PAYPAYSETTINGS WHERE IDNUMBER='$idnumber'"; $result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
$check = $row["IDNUMBER"];
if ($idnumber == $check) {
echo 'An item already exists with that Item ID Number. Please click "Back" and adjust it';
die();
}
}
$sql = "INSERT INTO PAYPAYSETTINGS SET IDNUMBER = '$idnumber' , RECIEVER_EMAIL = '$reciever_email' , IMAGE_URL = '$image_url' , RETURN = '$return' , CANCEL_URL = '$cancel_return' , IMAGE = '$image' , TYPE = '$type' , CURRENCY_CODE = '$currency_code'";
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
Thanks again..
Michael