Foros del Web » Programando para Internet » PHP »

Necesito ayuda con una lista de miembros

Estas en el tema de Necesito ayuda con una lista de miembros en el foro de PHP en Foros del Web. HEY AMIGOS ESTOY CREANDO UN FORO Y TENGO UNA LISTA DE MIEMBROS PERO LO QUE A MI EN ESPECIAL NO ME GUSTA ES QUE MUESTRA ...
  #1 (permalink)  
Antiguo 07/07/2009, 15:21
 
Fecha de Ingreso: junio-2009
Mensajes: 138
Antigüedad: 14 años, 10 meses
Puntos: 4
Pregunta Necesito ayuda con una lista de miembros

HEY AMIGOS ESTOY CREANDO UN FORO Y TENGO UNA LISTA DE MIEMBROS PERO
LO QUE A MI EN ESPECIAL NO ME GUSTA ES QUE MUESTRA TODOS LOS USUARIOS AL MISMO TIEMPO Y SIN ORDEN ALGUNO

y LO QUE YO DESEO ES QUE ESTA LISTA SE VEA ALGO ASI COMO LAS QUE TIENEN LOS FOROS vB
ME EXPLICO QUE TENGA UN PAGINADOR QUE SE MUESTRE EN EL PIE DE PAGINA Y QUE APARESCA EL ABECEDARIO Y NUMEROS

LES DEJO MI CODIGO QUE OCUPO

Código PHP:
<?php
include ("includes/config.php");

$xcount mysql_query("SELECT username FROM users");
$count mysql_num_rows($xcount);
?>
<html>
<head>
<title>tITULO</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<table width="100%">
<tr>
<td align="center">
<?php
if (isset($_SESSION[s_username])) {

if (
$_SESSION[s_username] == $admin_user) {
}
else {
}
}
else {
}
?>
</td>
</tr>
</table>
<br>
<table align="center" cellpadding="0" width="100%">
<tr>
<td>
We have <b><? echo $count?></b> registered members on this forum:
<br><br>
<?php
$query 
"SELECT username FROM users ORDER BY username";
$result mysql_query($query) or die(mysql_error());
while(
$r mysql_fetch_array($result)) {
$user $r['username'];
echo 
"<li> <a href=\"profile.php?user=$user\">$user</a><br>\n";
}
?>
</td>
</tr>
</table>
</body>
</html>
Y LA TABLA USERS DE MI BASE DE DATOS

Cita:


CREATE TABLE `users` (
`ID` int(11) NOT NULL auto_increment,
`username` varchar(30) NOT NULL,
`password` varchar(20) NOT NULL,
`email` varchar(40) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

INSERT INTO `users` VALUES (1, 'ADMIN', 'ADMIN', 'nomepermite F de W', '');

Se agradeceria de antemano
  #2 (permalink)  
Antiguo 07/07/2009, 15:31
Avatar de Ronruby  
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Necesito ayuda con una lista de miembros

Prueba usar el PHPPaging para la paginacion:

http://www.forosdelweb.com/f18/aport...ing-v2-638538/
  #3 (permalink)  
Antiguo 07/07/2009, 15:45
 
Fecha de Ingreso: junio-2009
Mensajes: 138
Antigüedad: 14 años, 10 meses
Puntos: 4
Respuesta: Necesito ayuda con una lista de miembros

Gracias man, pero me podrias dar algun ejemplo?
  #4 (permalink)  
Antiguo 07/07/2009, 15:47
Avatar de Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Necesito ayuda con una lista de miembros

En el enlace que te dejo Ronruby esta toda la informacion que necesitas para usar PHPPaging.
__________________
- León, Guanajuato
- GV-Foto
  #5 (permalink)  
Antiguo 07/07/2009, 15:50
 
Fecha de Ingreso: junio-2009
Mensajes: 138
Antigüedad: 14 años, 10 meses
Puntos: 4
Respuesta: Necesito ayuda con una lista de miembros

Gracias ya encontre y entendi como se usa.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:42.