zMagenta
Posting Freak
- Jul 15, 2011
- 1,414
- 682
Hi! Just need some help with this.
This is the code for it;
And that is what happens when buying. And ideas what to do now?
This is the code for it;
PHP:
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container">
<div class="cbb clearfix blue">
<h2 class="title">Badge Store</h2>
<div id="pixels-info" class="box-content pixels-info">
<div class="pixels-info-text clearfix">
<center>Select the badge that you would like to purchase.</center>
<hr style="margin: 10px 0;" />
<?php
$BadgesQ = mysql_query("SELECT * FROM `BadgeStore` ORDER BY ABS(`Cost`) DESC");
if (mysql_num_rows($BadgesQ) > 0) {
$i = 0;
while ($BadgesA = mysql_fetch_array($BadgesQ)) {
?>
<center>
<strong><?php echo $BadgesA['Name']; ?></strong><br />
<em>(<?php echo $BadgesA['Code']; ?>)</em><br /><br />
<img src="{url}/r63/c_images/album1584/<?php echo $BadgesA['Code']; ?>.<?php echo $BadgesA['ImageExt']; ?>" /><br />
Price: <strong><?php echo number_format($BadgesA['Cost']); ?></strong> credits · <a href="javascript:void(0);" data-code="<?php echo $BadgesA['BadgeID']; ?>">Buy</a>
</center>
<hr style="margin: 10px 0;" />
<?php
$i++;
}
}else{
echo '<center>There are currently no badges for sale.</center>';
}
?>
</div>
</div>
</div>
</div>
</div>
And that is what happens when buying. And ideas what to do now?