Cranavvo Badgeshop Error

Flint

http://Dusk-Hotel.com
Jul 10, 2012
464
48
Hey i'm having a issue with cranavos badge shop
it keeps showing this error:

Notice: Undefined index: addcode in C:\xampp\htdocs\badgeshop\assets\adpro.php on line 13

Notice: Undefined index: addprice in C:\xampp\htdocs\badgeshop\assets\adpro.php on line 14

Notice: Undefined index: addname in C:\xampp\htdocs\badgeshop\assets\adpro.php on line 15

Notice: Undefined index: addsubmit in C:\xampp\htdocs\badgeshop\assets\adpro.php on line 16

Notice: Undefined index: badgecode in C:\xampp\htdocs\badgeshop\assets\adpro.php on line 18

Notice: Undefined index: remsubmit in C:\xampp\htdocs\badgeshop\assets\adpro.php on line 19
 

Flint

http://Dusk-Hotel.com
Jul 10, 2012
464
48
Can you post the page please

PHP:
<?PHP
// ADPRO :o means admin process, cba doing seperate files
// meh :) ME GUSTA
 
//add and remove
 
if($rank<4){
 
 
 
}
else
$a_badgecode = mysql_real_escape_string(strtoupper($_POST['addcode']));
$a_price = mysql_real_escape_string($_POST['addprice']);
$a_name = mysql_real_escape_string($_POST['addname']);
$a_submit = mysql_real_escape_string($_POST['addsubmit']);
 
$r_badgecode = mysql_real_escape_string(strtoupper($_POST['badgecode']));
$r_submit = mysql_real_escape_string($_POST['remsubmit']);
 
// REMOVE
 
if($r_submit){
$r = mysql_query("SELECT * FROM badgeshop WHERE badgecode='{$r_badgecode}'");
$exist = mysql_num_rows($r);
 
if($r_badgecode){
 
if($exist!=0){
 
    $done = mysql_query("DELETE FROM badgeshop WHERE badgecode='{$r_badgecode}'");
    if($done){
   
        header("Location: index.php?error=15");
        mysql_close($server);
        die();
   
    }
    else
    header("Location: index.php?error=2");
    mysql_close($server);
    die();
 
}
else
header("Location: index.php?error=1");
mysql_close($server);
die();
 
}
else
header("Location: index.php?error=6");
mysql_close($server);
die();
 
}
 
 
 
// ADD
 
if($a_submit){
 
$a = mysql_query("SELECT * FROM badgeshop WHERE badgecode='{$badgecode}'");
 
 
if($a_name&&$a_price&&$a_badgecode){
 
if(strlen($a_name)>25){ header("Location: index.php?error=7"); mysql_close($server); die(); }
else
if(strlen($a_price)>9){ header("Location: index.php?error=8"); mysql_close($server); die(); }
else
$exist = mysql_num_rows($a);
if($exist!=1){
 
$addbadge = mysql_query("INSERT INTO badgeshop(id, badgecode, price, badgename) VALUES(NULL , '{$a_badgecode}', '{$a_price}', '{$a_name}')");
 
if($addbadge){
 
header("Location: index.php?error=11");
mysql_close($server);
die();
 
}
else
header("Location: index.php?error=2");
mysql_close($server);
die();
 
 
}
else
header("Location: index.php?error=9");
mysql_close($server);
die();
 
}
else
header("Location: index.php?error=6");
mysql_close($server);
die();
 
}
 
?>
 

Users who are viewing this thread

Top