Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 04:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[php]Find den Fehler nicht

Discussion on [php]Find den Fehler nicht within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2006
Posts: 250
Received Thanks: 29
[php]Find den Fehler nicht

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?
inter55545 is offline  
Old 10/17/2012, 20:24   #2
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
ich habe lediglich deine syntaxfehler beseitigt, ob der restliche Code Sinn ergibt habe ich nicht geschaut.

PHP 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%">'.$itemrow['name'].'</td><td '.$color.' width ="25%">'.$itemrow['mp'].'</td><td '.$color.' width="25">'.$type.'</td><td '.$color.' width="25">'.$itemrow['attribute'].'</td></tr>\n';

}
?>
NotEnoughForYou is offline  
Old 10/17/2012, 20:28   #3

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Was sollt {{table}} sein? Falls das ne Variable ist muss es so heißen: {$table}
boxxiebabee is offline  
Old 10/17/2012, 20:52   #4
 
elite*gold: 0
Join Date: Sep 2006
Posts: 250
Received Thanks: 29
Danke für die schnelle hilfe aber
keine hat geholfen ich schau auch weiter mit
aber nach insgesammt 10 std. for pc sollte ich wohl mal ne pause machen

kann geschlossen werden hab den fehler gefunden mit hilfe von neuronet

<? wollte er nicht musste <?php schreiben
inter55545 is offline  
Reply


Similar Threads Similar Threads
So ein Fehler gibt es nicht, DB alels funzt ingame Fehler -.-
01/19/2012 - Metin2 Private Server - 6 Replies
Hey Com, ich habe alles gestartet (Hamachi Daroo Files). Navicat geht, alles funzt nur folgendes: Wenn ich mich mit falschen Logins einlogge: Dieser Account existiert nicht. Wenn ich richtige Daten eingebe: Fehler beim Verbinden mit dem Server
Fehler its not working now error coming saying failed to find the ip address of space
12/22/2011 - DarkOrbit - 0 Replies
was soll ich tuhen alle daten sind richtig eingegeben doch er bricht nach der meldung ab??? its not working now error coming saying failed to find the ip address of space map...
[Root]Setting.lua fehler aber Fehler nicht zu beheben??
08/09/2011 - Metin2 Private Server - 5 Replies
Richte für jemanden den root ein, aber bei dem fehler bin ich jetzt selber an meine grenzen gekommen. Folgender Fehler kommt beim starten: http://www.fotos-hochladen.net/uploads/unbenan11n tij3uvlnr5d.png Die syserr daneben gehört dazu, die Setting.lua habe ich schon durch getauscht, kommt aber immer noch der Fehler :confused: Datenbank auch schon getauscht, aber was ist dieses:
QQ find das nicht!
04/12/2009 - Technical Support - 1 Replies
Hi,hoffe das ist die Richtige Abteilung! Ich hab ein Problem nähmlich:ich hab chinese QQ Id und Pw aber kann das programm auf der seite ÌÚѶÊ×Ò³ nicht finden.Könnte mir vllt. jemand den link vom chinesischen QQ rein stellen? MFG



All times are GMT +1. The time now is 04:34.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.