Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/11/2009, 12:02
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Duda/problema con código PHP

Código php:
Ver original
  1. <?php
  2. $data=mysql_query("SELECT * FROM characters WHERE 1=1  ORDER BY level DESC LIMIT 10");
  3. print '<table width="100% cellpadding="0" cellspacing="0" border="0">
  4. <tbody>';
  5. if ($data)
  6. {
  7. $i = 1;
  8.  while ($top2=mysql_fetch_array($data))
  9.   {
  10.    if(!isset($char["{$top2["char_name"]}"]))
  11.      {
  12.       if ($top2) { $name=''.$top2[char_name].'';
  13.     }
  14.        else { $name=''.$top2[char_name].'';     }
  15.  
  16. print ($i <= 3) ? "<tr><td style='color:red' class='cN'>$i .- $name</td></tr>\n" : "<tr><td class='cN'>$i .- $name</td></tr>\n";
  17. $i++;
  18. }}}
  19. ?>


saludos!
__________________
More about me...
~ @rhyudek1
~ Github