-
avatar
ciao
sto tentando di creare una lista di utenti registrati nella chat (ajax chat) ci sono riuscito e funziona ma non le foto ( avatar) non si vedono il sistema le rinomina in avatar_1 avatar_2 ecc.. non capisco dove sbaglio posto il codice chiedo aiuto grazie
// Recupero i record per la pagina corrente...
// utilizzando LIMIT per partire da $first e contare fino a $x_pag
$rs = mysql_query("SELECT * FROM ajax_chat_registered_members LIMIT $first, $x_pag");
$nr = mysql_num_rows($rs);
if ($nr != 0){
for($x = 0; $x < $nr; $x++){
$row = mysql_fetch_assoc($rs);
echo "<table><tr>";
echo "<table border='1' cellpadding='10'>";
echo "<tr> <th>ID</th> <th>Nome</th> <th>Ruolo</th> <th>Email</th> <th>Foto<th><th></th></tr>";
echo "<td>" . $row['id'] . "</td>";
echo "<td>" . $row['NAME'] . "</td>";
echo "<td>" . $row['ROLE'] . "</td>";
echo "<td>" . $row['EMAIL'] . "</td>";if (is_null($row['avatar_'])) {
echo '<td><img src="syns_mods/avatar/img/avatars/avatar_'.$get_user[ID].'.png'. $row['avatar_'].'"/>' . '</td>';
} else {}
echo "</tr></table>";
}
}else{
echo "Nessun record trovato!";
}