Ich bin mir nicht sicher ob sie aufgerufen werden, weil ich bis jetzt nur mit einem Account getestet habe der soviele Coins besaß, das ich nicht alles sehen konnte, allerdings hat der Kauf von items durchaus stattgefunden.
Ich bin auch nicht so der .. HTML-Held ;D . Wenn es dir helft mir zu helfen, bin schonmal für eine antwort hier dankbar o,0, dann schreibe ich mal den gesamten shop.php Text in einem Spoiler hier rein.
HTML Code:
<?php
session_start ();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>
FBL-System
</title>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1" />
<style type="text/css" media="screen">
<!--
body {
background-color: #f5c45b;
color: #000;
width: 350px:
}
.container {
background-color: #e5b346;
-moz-border-radius: 10px;
}
a {
color: #000;
}
-->
</style>
</head>
<body>
<?php
if($_SESSION['ID'] == "") {
include('inc/login.php'); }
else {
$coins = $_SESSION['coins'];
echo "
<center>
Hey, " . $_SESSION['id'] . " <br><br> Deine Coins: $coins <a href=\"../index.php?section=psc\" target=\"_top\">Aufladen!</a> <a href=\"logout.php\">Ausloggen</a><br><br>
<table border=\"0\">
<tr><th width=\"200\">Bild</th><th width=\"200\">Name</th><th width=\"200\">Preis</th><th width=\"200\">Kaufen</th></tr>
</table>";
include('../server/dbsettings.php');
$db = "account";
mysql_connect($dbhost, $dbuser, $dbpw) OR
die("ERROR: Connection failed. ".mysql_error());
mysql_select_db($db) OR
die("ERROR: DB allready open. ".mysql_error());
$section = "SELECT * from itemshop";
$query = mysql_query($section);
echo "<table border=\"0\">";
while($fetch = mysql_fetch_object($query)) {
echo "<tr><th width=\"200\"><img src=\"images/items/$fetch->id.gif\"></th><th width=\"200\"><font color=\"black\">$fetch->itemname</font></th><th width=\"200\"><font color=\"black\">$fetch->coins</font></th><th width=\"200\"><font color=\"black\"><a href=\"shopbuy.php?id=$fetch->id\">Kaufen!</a></font></th></tr>";
}
echo "</table></center><br>";
}
?>
</body>
</html>
Ich bin mir nicht sicher ob sie aufgerufen werden, weil ich bis jetzt nur mit einem Account getestet habe der soviele Coins besaß, das ich nicht alles sehen konnte, allerdings hat der Kauf von items durchaus stattgefunden.
Ich bin auch nicht so der .. HTML-Held ;D . Wenn es dir helft mir zu helfen, bin schonmal für eine antwort hier dankbar o,0, dann schreibe ich mal den gesamten shop.php Text in einem Spoiler hier rein.
HTML Code:
<?php
session_start ();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>
FBL-System
</title>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1" />
<style type="text/css" media="screen">
<!--
body {
background-color: #f5c45b;
color: #000;
width: 350px:
}
.container {
background-color: #e5b346;
-moz-border-radius: 10px;
}
a {
color: #000;
}
-->
</style>
</head>
<body>
<?php
if($_SESSION['ID'] == "") {
include('inc/login.php'); }
else {
$coins = $_SESSION['coins'];
echo "
<center>
Hey, " . $_SESSION['id'] . " <br><br> Deine Coins: $coins <a href=\"../index.php?section=psc\" target=\"_top\">Aufladen!</a> <a href=\"logout.php\">Ausloggen</a><br><br>
<table border=\"0\">
<tr><th width=\"200\">Bild</th><th width=\"200\">Name</th><th width=\"200\">Preis</th><th width=\"200\">Kaufen</th></tr>
</table>";
include('../server/dbsettings.php');
$db = "account";
mysql_connect($dbhost, $dbuser, $dbpw) OR
die("ERROR: Connection failed. ".mysql_error());
mysql_select_db($db) OR
die("ERROR: DB allready open. ".mysql_error());
$section = "SELECT * from itemshop";
$query = mysql_query($section);
echo "<table border=\"0\">";
while($fetch = mysql_fetch_object($query)) {
echo "<tr><th width=\"200\"><img src=\"images/items/$fetch->id.gif\"></th><th width=\"200\"><font color=\"black\">$fetch->itemname</font></th><th width=\"200\"><font color=\"black\">$fetch->coins</font></th><th width=\"200\"><font color=\"black\"><a href=\"shopbuy.php?id=$fetch->id\">Kaufen!</a></font></th></tr>";
}
echo "</table></center><br>";
}
?>
</body>
</html>