Ver Mensaje Individual
  #15 (permalink)  
Antiguo 29/03/2005, 05:41
Avatar de zXTury
zXTury
 
Fecha de Ingreso: febrero-2005
Ubicación: Ensenada
Mensajes: 8
Antigüedad: 19 años, 3 meses
Puntos: 0
hola... mucho tiempo sin entrar jeje..

ahora tengo un problema un poko diferente... ya ke tengo ke tengo hecha la kondicion y ya ke puse el kodigo y todo... no se por ke aparece un 1 aunlado de vs... ( 1vs ) kisiera ke le dieran una miradita al kodigo y ke me dijeran en ke me ekivoko... Gracias =)

pd.. a lo de colors y esas kosillas por favor ignorenlo =)

Código PHP:
<link href="/wars/style.css" rel="stylesheet" type="text/css"> 
<?

include("config.inc.php");
echo 
"\n\n\n $copyr \n\n";

$conn mysql_connect($sqlhost$sqluser$sqlpass) or
              die (
"Verbindung zur Datenbank nicht möglich !");
$db mysql_select_db($database$conn);
$sql "SELECT * FROM $mysql_clanwars WHERE id = '$war_id'";
$result mysql_query($sql$conn);

while(
$inhalte mysql_fetch_array($resultMYSQL_ASSOC))
{
  
$punkte_eigen floor($inhalte["s01"] + $inhalte["s02"] + $inhalte["s03"] + $inhalte["s04"] + $inhalte["s05"]);
  
$punkte_gegner floor($inhalte["s11"] + $inhalte["s12"] + $inhalte["s13"] + $inhalte["s14"] + $inhalte["s15"]);

  if(
$punkte_eigen $punkte_gegner)
  {
  
$color "$color_won";
  }
  elseif(
$punkte_eigen $punkte_gegner)
  {
  
$color "$color_lost";
  }
  elseif(
$punkte_eigen == $punkte_gegner)
  {
  
$color "$color_draw";
  }
    echo
"

      $kopfzeile1 Kutsu- vs " 
$inhalte["gegnerclantag"] . "  $kopfzeile2
      <center>
<table class='text' width='450' height='10' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td><table class='text' width='72%' height='0' border='0' align='center' cellpadding='0' cellspacing='0'>
        <tr> 
          <td width='22%'><div align='center'>" 
$inhalte["j1"] . "</div></td>
          "
; echo print "
          <td width='2%'><img src='img/space.gif' width='12' height='1'>"
; if 
            (
$inhalte["r1"] != NULL){ print "vs"; }else{ print "&nbsp;"; } print 
            
"<img src='img/space.gif' width='12' height='1'></td>
          <td width='20%'><div align='center'>" 
$inhalte["r1"] . "<img src='img/space.gif' width='12' height='1'></div></td>
          <td width='7%'><img src='img/space.gif' width='12' height='1'></td>
          "
$s01 floor($inhalte["s01"]); $s11 floor($inhalte["s11"]); if($s01 
          
$s11) { $color "$color_won"; } elseif($s01 $s11) { $color "$color_lost"
          } elseif(
$s01 == $s11) { $color "$color_draw"; } echo
          <td width='49%'><div align='center'><font color=$color>" 
$inhalte["s01"
              . 
"-" $inhalte["s11"] . "</font><img src='img/space.gif' width='12' height='1'></font></div></td>
        </tr>
      </table>
      <table class='text' width='100%' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>"
;
  
$punkte_eigen floor($inhalte["s01"] + $inhalte["s02"] + $inhalte["s03"] + $inhalte["s04"] + $inhalte["s05"]);
  
$punkte_gegner floor($inhalte["s11"] + $inhalte["s12"] + $inhalte["s13"] + $inhalte["s14"] + $inhalte["s15"]);

  if(
$punkte_eigen $punkte_gegner)
  {
  
$color "$color_won";
  }
  elseif(
$punkte_eigen $punkte_gegner)
  {
  
$color "$color_lost";
  }
  elseif(
$punkte_eigen == $punkte_gegner)
  {
  
$color "$color_draw";
  }

  echo
"
  </tr>
  <tr>
    <td><div align='center'>Kutsu- <font color=$color>$punkte_eigen:$punkte_gegner</font> 
        " 
$inhalte["gegnerclantag"] . "</div></td>
  </tr>
</table></td>
  </tr>
</table> 



<br><br>
  <a href='ver.php'>Regresar</a> 
</center>
      <br><br>
  "
;
}
?>