Uso mysql_fetch_array para mostrar cosas de la BD en php y ejecuto el sugiuente codigo:
Código PHP:
<?
$query_player_online = mysql_query("SELECT * FROM characters.characters WHERE online = 1;");
while($player_online = mysql_fetch_array($query_player_online, MYSQL_NUM)){
$player_online['name'] = $nombre_pj;
$player_online['class'] = $clase_pj;
$player_online['race'] = $raza_pj;
$player_online['gender'] = $sexo_pj;
$player_online['level'] = $nivel_pj;
if($raza_pj == '2'|'5'|'6'|'8'|'10'){$faccion_pj = 'horda';}else{$faccion_pj = 'alianza';}
echo '
<tr>
<td>'.$nombre_pj.'</td>
<td><center><img src=\'plantillas/'.$plantilla.'/imagenes/clase/'.$clase_pj.'.gif\' /></center></td>
<td><center><img src=\'plantillas/'.$plantilla.'/imagenes/raza/'.$raza_pj.'-'.$sexo_pj.'.gif\' /></center></td>
<td><center><img src=\'plantillas/'.$plantilla.'/imagenes/faccion/'.$faccion_pj.'.gif\' /></center></td>
<td>'.$nivel_pj.'</td>
</tr>';
}
?>
Alguien sabe porque? Ayuda porfavor!