
Gibt es sowas? Ist das Umsetzbar? Könnt Ihr mir evtl. weiterhelfen?
Grüße
jonny
verwendete ilch Version: 1.1 P
betroffene Homepage: breathless-esports.com
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php # Copyright by: Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $farbe = ''; $farb2 = ''; echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 3'); while ($row = db_fetch_object($erg) ) { $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); if ($row->wlp == 1) { $bild = 'include/images/icons/win.gif'; } elseif ($row->wlp == 2) { $bild = 'include/images/icons/los.gif'; } elseif ($row->wlp == 3) { $bild = 'include/images/icons/pad.gif'; } $row->tag = get_opponent_details('tag', $row->oid); echo '<tr><td>'.get_wargameimg($row->game).'</td><td align="left">'; echo '<a href="index.php?wars-more-'.$row->id.'">'; echo $row->owp.' '.$lang['at2'].' '.$row->opp.' - '.$row->tag.'</a></td><td><img src="'.$bild.'"></td></tr>'; } echo '</table>'; ?>
<?php # Copyright by: Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $farbe = ''; $farb2 = ''; echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 5'); while ($row = db_fetch_object($erg) ) { $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); if ($row->wlp == 1) { $bild = 'include/images/icons/win.gif'; $bgColor= '#bfe5bf'; } elseif ($row->wlp == 2) { $bild = 'include/images/icons/los.gif'; $bgColor= '#f2bfbf'; } elseif ($row->wlp == 3) { $bild = 'include/images/icons/pad.gif'; $bgColor= '#fef6d2'; } $row->tag = get_opponent_details('tag', $row->oid); echo '<tr style="background: '.$bgColor.';" class="Cnorm"><td>'.get_wargameimg($row->game).'</td>'; echo '<td align="left"><a onclick="javascript:creatCurrentCookie(\'index.php?wars\');" href="index.php?wars-more-'.$row->id.'">'; echo $row->owp.' '.$lang['at2'].' '.$row->opp.' - '.$row->tag.'</a></td><td><img src="'.$bild.'"></td></tr>'; } echo '</table>'; ?>
<?php # Copyright by: Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $farbe = ''; $farb2 = ''; echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 5'); while ($row = db_fetch_object($erg) ) { $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); if ($row->wlp == 1) { $bild = 'include/images/icons/win.gif'; $Color= '#bfe5bf'; } elseif ($row->wlp == 2) { $bild = 'include/images/icons/los.gif'; $Color= '#f2bfbf'; } elseif ($row->wlp == 3) { $bild = 'include/images/icons/pad.gif'; $Color= '#fef6d2'; } $row->tag = get_opponent_details('tag', $row->oid); echo '<tr class="Cnorm"><td>'.get_wargameimg($row->game).'</td>'; echo '<td align="left"><a onclick="javascript:creatCurrentCookie(\'index.php?wars\');" href="index.php?wars-more-'.$row->id.'">'; echo '<span style="color: '.$Color.' ;"> '.$row->owp.' '.$lang['at2'].' '.$row->opp.'</span> - '.$row->tag.'</a></td><td><img src="'.$bild.'"></td></tr>'; } echo '</table>'; ?>
<?php # Copyright by: Manuel # Support www.ilch.de $akttime = date('Y-m-d'); $query = db_query("SELECT DATE_FORMAT(datime,'%d.%m.%Y') as wardate, DATE_FORMAT(datime, '%H:%i') as wartime, a.id as id, a.game as sqloutgame, a.mod as sqloutmod, a.oid, a.tid, a.mtyp as mtyp, a.datime as datime, c.name as team1, b.name as team2, b.land as land, c.logo as teamlogo, b.logo as logo, b.tag as tag FROM prefix_wars a LEFT JOIN prefix_opponents b ON a.oid= b.oid LEFT JOIN prefix_groups c ON a.tid= c.id WHERE datime > ".date("Y-m-d")." AND status = 2 ORDER by datime ASC LIMIT 1"); $now = date("Y")+date("m")+date("d"); defined ('main') or die ( 'no direct access' ); $farbe = ''; $farb2 = ''; echo ''; $erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 5'); while ($row = db_fetch_object($erg) ) { $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); if ($row->wlp == 1) { $bild = 'include/images/icons/win.gif'; $Color= '#0C0'; } elseif ($row->wlp == 2) { $bild = 'include/images/icons/los.gif'; $Color= '#ff0000'; } elseif ($row->wlp == 3) { $bild = 'include/images/icons/pad.gif'; $Color= '#ffde00'; } $row->tag = get_opponent_details('tag', $row->oid); echo ' <a href="index.php?wars-more-'.$row->id.'"> <div class="next-match-info"> <div class="match-team"> BRE4THLESS <span class="match-vs">VS</span> ' . $row['team2'] . ' <div class="match-game"> ' .$row['wardate'] . ', ' . $row['sqloutgame'] . ' - ' . $row['mtyp'] . ' (' . $row['sqloutmod'] . ') </div> </div> <div class="match-result"> <span style="color: '.$Color.' ;">'.$row->owp.' '.$lang['at2'].' '.$row->opp.'</span> </div> <div class="clear"></div> </div> </a> '; } echo ''; ?>
Fatal error: Cannot use object of type stdClass as array in ...httpdocs/include/boxes/lastwars.php on line 48
while ($row = db_fetch_object($erg))
<?php # Copyright by: Manuel # Support www.ilch.de $akttime = date('Y-m-d'); $query = db_query("SELECT DATE_FORMAT(datime,'%d.%m.%Y') as wardate, DATE_FORMAT(datime, '%H:%i') as wartime, a.id as id, a.game as sqloutgame, a.mod as sqloutmod, a.oid, a.tid, a.mtyp as mtyp, a.datime as datime, c.name as team1, b.name as team2, b.land as land, c.logo as teamlogo, b.logo as logo, b.tag as tag FROM prefix_wars a LEFT JOIN prefix_opponents b ON a.oid= b.oid LEFT JOIN prefix_groups c ON a.tid= c.id WHERE datime > ".date("Y-m-d")." AND status = 2 ORDER by datime ASC LIMIT 1"); $now = date("Y")+date("m")+date("d"); defined ('main') or die ( 'no direct access' ); $farbe = ''; $farb2 = ''; echo '<div class="box-content-top">'; $erg = db_query('SELECT * FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 5'); while ($row = db_fetch_object($erg) ) { $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); if ($row->wlp == 1) { $bild = 'include/images/icons/win.gif'; $Color= '#0C0'; } elseif ($row->wlp == 2) { $bild = 'include/images/icons/los.gif'; $Color= '#ff0000'; } elseif ($row->wlp == 3) { $bild = 'include/images/icons/pad.gif'; $Color= '#ffde00'; } $row->tag = get_opponent_details('tag', $row->oid); echo ' <a href="index.php?wars-more-'.$row->id.'"> <div class="next-match-info"> <div class="match-team"> BRE4THLESS <span class="match-vs">VS</span> ' . $row->team2 . ' <div class="match-game"> ' .$row->wardate . ', ' . $row->sqloutgame . ' - ' . $row->mtyp . ' (' . $row->sqloutmod . ') </div> </div> <div class="match-result"> <span style="color: '.$Color.' ;">'.$row->owp.':'.$row->opp.'</span> </div> <div class="clear"></div> </div> </a> '; } echo '</div>'; ?>
Geschlossen | ||
![]() |
Zurück zu HTML, PHP, SQL,... |