Hallo leute hab hier mal was geschieben aber iwie klappt das nicht
Fehlermeldung :
/n"; } ?>
Spells
Name Cost Type Attribute
".$itemsrow["name"]". ".$itemsrow["mp"]." $type ".$itemsrow["attribute"]."
Code:
<table width="50%" style="border: solid 0px black" cellspacing="0" cellpadding="0">
<tr><td colspan="8" bgcolor="transparent"><center><b>Spells</b></center></td></tr>
<tr><td><b>Name</b></td><td><b>Cost</b></td><td><b>Type</b></td><td><b>Attribute</b></td></tr>
<?
$count = 1;
$itemsquery = doquery("SELECT * FROM {{table}} ORDER BY id", "spells");
while ($itemsrow = mysql_fetch_array($itemsquery)) {
if ($count == 1) { $color = "bgcolor=\"transparent\""; $count = 2; } else { $color = ""; $count = 1; }
if ($itemsrow["type"] == 1) { $type = "Heal"; }
elseif ($itemsrow["type"] == 2) { $type = "Hurt"; }
elseif ($itemsrow["type"] == 3) { $type = "Sleep"; }
elseif ($itemsrow["type"] == 4) { $type = "+Damage (%)"; }
elseif ($itemsrow["type"] == 5) { $type = "+Defense (%)"; }
echo "<tr><td $color width=\"25%\">".$itemsrow["name"]".</td><td $color width=\"25%\">".$itemsrow["mp"]."</td><td $color width=\"25%\">$type</td><td $color width=\"25%\">".$itemsrow["attribute"]."</td></tr>/n";
Es sollte mir aus der DB mit name dk_spells die teile auflisten
nach 4 std. suche frag ich wo hab ich mich verschieben seh ich den wald vor lauter bäume nicht mehr?






