Sebastian Wramba
Erfahrenes Mitglied
So ich hab eine clanwars.php3, die includet http://www.blubberblabla.de/clanwar/index.php
Diese index.php sieht so aus:
Es wird aber leider nur eine leere Seite angezeigt. Warum? Wo liegt der Fehler?
Diese index.php sieht so aus:
PHP:
<?php
include("config.php");
include("connect.php");
//Abfrage der relevanten Daten
$strSQL = "SELECT ID,gegner,kurz,URL,playerhome,playerout,maphome,mapout,roundtime,termin,time,server,ergmaphomehome,ergmaphomeout,ergmapouthome,ergmapoutout FROM WJ_cscwp ORDER BY ID DESC";
$hErgebnis = @mysql_query($strSQL)
or die("Abfrage $strSQL ist Fehlgeschlagen <br> \n " .
mysql_errno() . ":" . mysql_error());
echo "<body bgcolor= " .$bodybg . " alink=$linkcol link=$linkcol vlink=$linkcol>";
echo "<link rel=\"stylesheet\" href=\"http://kfd.strikenet.de/bg.css\" type=\"text/css\">";
echo "<link rel=\"stylesheet\" href=\"http://kfd.strikenet.de/links.css\" type=\"text/css\">";
?>
<script language="JavaScript">
function fightus() {
window.open('http://www.kfd-clan.f2s.com/fightus.php',
'FightUs','width=380, height=280,resizable=no');
}
</script>
<?php
if (mysql_num_rows($hErgebnis))
{
echo "<center> \n <table border=$aborder bgcolor=$atblcol bordercolor=$abordcol width=\"80%\"> \n <tr> \n <td> \n <center> \n <font color=$afont> \n <h2> \n <b> \n " . $homeclan . "</h2> \n </b> \n </font> \n";
echo "<p> \n <font face=\"$fontface\" color=\"$afont\" size=\"2\"> \n Warplaner </font> \n </center> \n </td> \n </tr> \n ";
echo "<tr> \n <td> \n <center> \n <font face=$fontface size=$fontsize> <a href=\"javascript:fightus()\"> \n SIGN IN FOR CW </a> \n </center> \n </td> \n </tr>\n";
echo "<tr> \n <td> \n <table border=\"1\" bgcolor=" .$itablecolor . " bordercolor=$ibordercolor width=\"100%\"> \n ";
while($oZeile = mysql_fetch_array($hErgebnis))
{
for($i = 0; $i < 100; $i ++ )
echo "";
echo "<tr> \n <td width=\"20%\" valign=\"top\"> \n";
echo "<font face=\"$fontface\" color=\"$fonti\" size=\"$fontsize\"> \n";
echo "<a href=\"http://";
echo $oZeile["URL"];
echo "\"> \n <b> \n ";
echo $oZeile["gegner"];
echo " </b> </a>";
echo "<p> \n VS <p> \n";
echo "<b> \n";
echo $homeclan;
echo "</b> \n";
echo "<p> \n";
echo $oZeile["termin"];
echo "<br> \n";
echo $oZeile["time"];
echo "</font> \n";
echo "</td> \n <td valign=\"top\"> \n";
echo "<font face=\"fontface\" color=\"$fonti\" size=\"$fontsize\"> \n";
echo "ServerIP:";
echo $oZeile["server"];
echo "<p> \n";
echo "roundtime:";
echo $oZeile["roundtime"];
echo "<p> \n";
echo "Spieler ";
echo $oZeile["kurz"];
echo ":";
echo $oZeile["playerout"];
echo "<p> \n";
echo "Spieler ";
echo $homekurz;
echo ":";
echo $oZeile["playerhome"];
echo "</font> \n </td> \n <td width=\"20%\" valign=\"top\"> \n ";
echo "<font face=\"$fontface\" color=\"$fonti\" size=\"$fontsize\"> \n";
echo "Map ";
echo $oZeile["kurz"];
echo ":";
echo $oZeile["mapout"];
echo "<p> \n";
echo "Map ";
echo $homekurz;
echo ":";
echo $oZeile["maphome"];
echo "</font> \n";
echo "</td> \n </tr> \n <tr> \n <td> \ </td> \n <td> \n";
echo "<center> \n <font face=\"$fontface\" color=\"$fonti\" size=\"4\"> \n ERGEBNISSE </font> \n </center> \n <p> \n";
echo "<font face=\"$fontface\" color=\"$fonti\" size=\"$fontsize\"> \n";
echo "<u> \n <b> \n ";
echo $oZeile["mapout"];
echo "</u> \n </b> \n ";
echo "<br> \n <br> \n";
echo $oZeile["kurz"];
echo " : ";
echo $oZeile["ergmapoutout"];
echo " ";
echo $homekurz;
echo " : ";
echo $oZeile["ergmapouthome"];
echo "<br> \n <hr> \n <br> \n";
echo "<u> \n <b> \n ";
echo $oZeile["maphome"];
echo "</u> \n </b> \n ";
echo "<br> \n <br> \n";
echo $oZeile["kurz"];
echo " : ";
echo $oZeile["ergmaphomeout"];
echo " ";
echo $homekurz;
echo " : ";
echo $oZeile["ergmaphomehome"];
echo "</td> \n <td> \n </td> \n ";
echo "</tr> \n";
echo "<tr> \n <td bgcolor=$trenn> \n </td> \n <td bgcolor=$trenn> \n </td> \n <td bgcolor=$trenn> \n </td> \n </tr> \n";
}
echo "</table> \n </tr> \n <tr> \n <td border=\"$aborder\" bgcolor=\"#006699\"> \n ";
echo "<center> \n <font face=\"$fontface\" size="\$fontsize\"><a href=\"javascript:fightus()\"> \n SIGN IN FOR CW </a> \n </p> \n ";
echo "</center> \n </td> \n </tr> \n";
echo "<tr> \n <td> \n <a href=\"copy.php\"> \n <center> \n copyrights </center> \n </a> \n ";
echo "</td> \n </tr> \n";
echo "</table> \n ";
}
else
{
echo "<center> \n";
echo "<font face=\"$fontsize\" color=\"$fonti\" size=\"$fontsize\"> \n Es gibt leider noch keine Einträge.";
echo "<p> \n";
echo "<a href=\"javascript:fightus()\"> \n SIGN IN FOR CW </a> \n </p> \n ";
echo "</center> \n";
}
?>
Es wird aber leider nur eine leere Seite angezeigt. Warum? Wo liegt der Fehler?