Ok, hast vergessen den HTML Code raus zu nehmen.
Also entweder machst des mit echo ausgabe in php oder du machst es direkt html.
Das sieht dann so aus.
So isses HTML unterhalb deines Else.
Code:
<?
$topdaten = mysql_fetch_array(db_query("SELECT `uid` FROM ".$db_prefix."_usr_of_the_day"));
$topname = mysql_fetch_array(db_query("SELECT `nickname` FROM ".$db_prefix."_userdaten WHERE uid = '".$topdaten['uid']."'"));
?>
<?if ($_SESSION['login'] == 'true') {?>
<?php
$Gaeste = db_query ("SELECT * FROM ".$db_prefix."_shoutbox_admin");
$sb = mysql_fetch_assoc ($Gaeste);
if ($sb['show_sb'] == "ja") {
include 'module/Shoutbox/module.php';
} elseif ($_SESSION['login'] == 'true'){
include 'module/Shoutbox/module.php';
}
?>
<head>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<table CELLPADDING="0" CELLSPACING="0" style="height: 20px; width: 30%" align="center">
<tr>
<td class="style1">
User des Tages ist:<br>
<b><?=$topname['nickname'];?></b>
</td>
</tr>
</table>
<?} else { ?>
<img alt="" height="300" src="../../../../startseiteNEW.png" width="500">
<?
}
?>
Und so sieht das mit PHP aus.
Code:
<?
$topdaten = mysql_fetch_array(db_query("SELECT `uid` FROM ".$db_prefix."_usr_of_the_day"));
$topname = mysql_fetch_array(db_query("SELECT `nickname` FROM ".$db_prefix."_userdaten WHERE uid = '".$topdaten['uid']."'"));
?>
<?if ($_SESSION['login'] == 'true') {?>
<?php
$Gaeste = db_query ("SELECT * FROM ".$db_prefix."_shoutbox_admin");
$sb = mysql_fetch_assoc ($Gaeste);
if ($sb['show_sb'] == "ja") {
include 'module/Shoutbox/module.php';
} elseif ($_SESSION['login'] == 'true'){
include 'module/Shoutbox/module.php';
}
?>
<head>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<table CELLPADDING="0" CELLSPACING="0" style="height: 20px; width: 30%" align="center">
<tr>
<td class="style1">
User des Tages ist:<br>
<b><?=$topname['nickname'];?></b>
</td>
</tr>
</table>
<?} else {
echo "<img alt=''height='300' src='../../../../startseiteNEW.png' width='500'>";
}
?>
Thats all !
hoffe geholfen zu haben xD
MfG Observer