Crannavvo Badge Shop Error HELP

chrispro

Member
Mar 16, 2012
23
3
I keep getting this

Notice: Undefined index: error in C:\xampp\htdocs\badge shop\assets\errors.php on line 3

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

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

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

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

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

Notice: Undefined index: remsubmit in C:\xampp\htdocs\badge shop\assets\adpro.php on line 19
logo.png


Warning: mysql_result() expects parameter 1 to be resource, boolean given inC:\xampp\htdocs\badge shop\assets\badgeshop.php on line 6

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\badge shop\assets\badgeshop.php on line 15
You've successfully configured Cranavvo's badgeshop v0.3! All you need to do is rank yourself something higher than 4 and you'll be elegible to add a badge!​
But I am Rank 7 already..Help please.
 

Solar

Member
Jan 24, 2012
135
10
You are trying to pull data from a variable in your PHP coding. The boolean errors I'm reading are because you didn't define your variables. Please post that .php page/code.
 

chrispro

Member
Mar 16, 2012
23
3
<?PHP
include("assets/config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " ">
<html xmlns=" ">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[v0.3] Cranavvo's Badgeshop</title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<link href="css/tiptip.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src=" "></script>
<script type="text/javascript" src="assets/tipTip.js"></script>
<script type="text/javascript" src="assets/site.js"></script>
<script>
$(function(){
$(".hover").tipTip();
});
</script>
</head>

<body>
<div id="tiptip_holder">
<div id="tiptip_content">
<div id="tiptip_arrow">
<div id="tiptip_arrow_inner"></div>
</div>
</div>
</div>
<div id="topbar" class="black">
<div class="left"><?PHP if($rank>5) { echo '<img src="'.$badgealbum.'/ADM.gif" id="admin" class="hover" title="Badgeshop Tools" style="float:left; margin-right: 20px;"/>'; } ?><img src="images/hand.gif" title="My Badges" class="hover" id="hand" style="float:left; margin-top:5px;" /><?PHP echo'<img src="images/coins.png" class="hover "title="You have <b>'.$credits.'</b> credits!" style="margin-top:-11px; float:left;" /> '; ?></div>
<div class="right"><a href="<?PHP echo $siteurl ?>"><img src="images/leave.png" class="hover" title="Leave Badgeshop" style=" margin-top:-5px; margin-left:25px; float:right;" /></a></div>
</div>
<div id="mybadges">
<h3>My Badges</h3>
This is a list of <b>ALL</b> your badges!<br /><br />
<?PHP include("assets/mybadges.php"); ?>
</div>
<div id="c-wrapper">
<?PHP include("assets/errors.php"); ?>
<?PHP include("assets/tools.php"); ?>
<div class="shop">
<img src="images/logo.png" />
<hr />
<div class="left">
<?PHP

include("assets/badgeshop.php");

?>
</div>
<div class="right">
<div class="badgecontainer"><h3>Welcome to Cranavvo's Badgeshop</h3><p>Welcome to Cranavvo's Badgeshop v0.3! A new hand-coded from scratch system by <a href=" ">Cranavvo</a> for nearly all Phoenix(Including Uber) compatible databases!</p></div>
<div class="badgecontainer"><h3>Request a badge</h3><p>Is the badgeshop missing your favourite badge? Well this tool can send a message to the staff to ask them "Can you please add it". Just enter your badgecode below, and we'll price and add it for you!
<br /><br />
<center>
<form method='POST' action='assets/request.php'>
<input type="text" maxchars="10" name="req_badgecode" /><br />
<input type="submit" name="req_submit" value="Send Request" />
</form></center>
</p></div></div>
</div>
<div class="diclaimer">Badge System made by <a href=" ">Cranavvo</a> @ Otaku-Studios.com</div>
</div>
</body>
</html>
<?PHP

mysql_close($server); //Now why would someone want to have sql server still going after things have loaded?

?>
 

Solar

Member
Jan 24, 2012
135
10
Please post your "C:\xampp\htdocs\badge shop\assets\adpro.php" and your "C:\xampp\htdocs\badge shop\assets\errors.php" because I don't see any variables defined on this page.

Edit: Another question.. Was there an error while inserting the query into the mysql database? Did this come with a .sql file or query?
 

Users who are viewing this thread

Top