|
You last visited: Today at 02:15
Advertisement
HTML Fehler bei Serverhomepage !
Discussion on HTML Fehler bei Serverhomepage ! within the Web Development forum part of the Coders Den category.
09/02/2011, 22:06
|
#16
|
elite*gold: 0
Join Date: Jul 2009
Posts: 195
Received Thanks: 3
|
Ach in der Tabelle soll eine Spalte itemshop heißen ? 
Das ist dann völlig Falsch .. die DB account -> TABELLE itemshop und dann 4 Spalten.
( id, name, price, pic, group )
|
|
|
09/02/2011, 22:08
|
#17
|
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
|
Nein die Spalte soll Itemname, coins heißen so steht es im Script ... dann musst du $fetch->name $fetch->price etc machen
|
|
|
09/02/2011, 22:10
|
#18
|
elite*gold: 0
Join Date: Jul 2009
Posts: 195
Received Thanks: 3
|
Uhm ... das krieg ich voll nicht auf die Reihe irgendwie >,<
Ist das dir, oder jmd anderen Möglich das von eurem Standort aus zu erledigen ?
Wäre echt mega nett
|
|
|
09/02/2011, 22:11
|
#19
|
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
|
Klar ich änder es dir kurz ab
#EDIT
PHP 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->pic.'.gif "></th><th width=\"200\"><font color=\"black\">$fetch->name</font></th><th width=\"200\"><font color=\"black\">$fetch->price</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>
#EDIT2 : kurz noch das FROM geändert und den vergesssenen Tag geschlossen
|
|
|
09/02/2011, 22:12
|
#20
|
elite*gold: 0
Join Date: Jul 2009
Posts: 195
Received Thanks: 3
|
Vielen, Vielen Dank !!! 
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\shop\shop.php on line 58
Komme nicht mal noch in den itemshop rein jetzt :/
( hab alles ersetzt )
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\shop\shop.php on line 58
Komme nicht mal noch in den itemshop rein jetzt :/
( hab alles ersetzt )
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\shop\shop.php on line 58
Komme nicht mal noch in den itemshop rein jetzt :/
( hab alles ersetzt )
|
|
|
09/02/2011, 22:46
|
#21
|
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
|
habe es geupdatet wegen dem tag zeig mal deine version vermutlich ist das die davor
#EDIT:
PHP 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->pic.'.gif'></th><th width=\"200\"><font color=\"black\">$fetch->name</font></th><th width=\"200\"><font color=\"black\">$fetch->price</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>
kommt davon wenn man es kurz hier macht ^^ hatte " statt '
|
|
|
09/09/2011, 08:46
|
#22
|
elite*gold: 2
Join Date: May 2011
Posts: 448
Received Thanks: 110
|
hab ich glaub ich auch iwann mal erwähnt  hab mal drübergeschaut jetzt müsste eig gehen  ty
|
|
|
 |
|
Similar Threads
|
HTML Fehler bei Serverhomepage
09/02/2011 - Metin2 Private Server - 0 Replies
Heyho epvpers :) ,
ich habe einen HTML Fehler bei meiner Homepage im Itemshop.
Ich habe dort Items reingestellt, allerdings werden weder die Anzahl der erforderlichen Coins sowie der Name des Items angezeigt.
Der Fehler:
Notice: Undefined property: stdClass::$itemname in C:\xampp\htdocs\shop\shop.php on line 58
Notice: Undefined property: stdClass::$coins in C:\xampp\htdocs\shop\shop.php on line 58
|
Serverhomepage!
06/05/2011 - Minecraft - 1 Replies
Hallo leute,
ich wollte mal fragen ob jemand für mich ein WordPress template für Minecraft hat. Ich finde keine habe Google schon von oben bis unten Abgesucht .. ://
MfG
Spiolino
|
Html Fehler
11/16/2010 - Web Development - 5 Replies
Hey COm,
ich hab ein kleines HTML Script gemacht( bitte nicht bewerten, bin absoluter noob in html). Offline funktioniert es auch sehr gut, aber online auf nem Host kann ich es nicht abrufen. Im Anhang das Script. Hoffe ihr könnt mir helfen.
Best regards, beat'brot
|
DYN DNS und die ServerHomepage???
11/30/2009 - Metin2 Private Server - 4 Replies
habe mal ein HotTo aus einem anderen Forum genutzt
LINK: (enthält backlink)
M2 Server Skripte • Thema anzeigen - Hamachi seite öffentlich
und naja wenn ich apache anmache und mein kumpel versucht auf meine Seite zu kommen geht das net =(
Warum ?
|
[html,php fehler]Frameseite lässt sich nicht ändern
08/25/2009 - Web Development - 4 Replies
hallo,
ich wollt mir eine homepage basteln mit menü etc. Unteranderm hab ich ein iframe eingebaut. Darin ruf ich die ganzen seiten auf unteranderen meine regestrier.php.
Jetzt hab ich aber das problem das ich nicht alle input felder ausfüllen kann weil manche einfach nur angezeigt werden aber nicht ihre funktion erfüllen etwas einzugeben.
Ich hoffe ihr habt verstanden was ich mein :D
|
All times are GMT +2. The time now is 02:15.
|
|