Ver Mensaje Individual
  #12 (permalink)  
Antiguo 19/02/2013, 12:54
yolanda16568
 
Fecha de Ingreso: agosto-2011
Mensajes: 165
Antigüedad: 12 años, 9 meses
Puntos: 1
Respuesta: No ver la tabla

de aqui:
Cita:
mysql_select_db($database_libre, $libre);
$query_noticias = "SELECT * FROM noticias WHERE grupo = 1 ORDER BY noticia_id DESC";
$query_limit_noticias = sprintf("%s LIMIT %d, %d", $query_noticias, $startRow_noticias, $maxRows_noticias);
$noticias = mysql_query($query_limit_noticias, $libre) or die(mysql_error());
$row_noticias = mysql_fetch_assoc($noticias);

if (isset($_GET['totalRows_noticias'])) {
$totalRows_noticias = $_GET['totalRows_noticias'];
} else {
$all_noticias = mysql_query($query_noticias);
$totalRows_noticias = mysql_num_rows($all_noticias);
}
$totalPages_noticias = ceil($totalRows_noticias/$maxRows_noticias)-1;

$queryString_noticias = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_noticias") == false &&
stristr($param, "totalRows_noticias") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_noticias = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_noticias = sprintf("&totalRows_noticias=%d%s", $totalRows_noticias, $queryString_noticias);
Con este codigo da errores

Cita:
<?php

$totalRows_archivos = mysql_num_rows($archivos); //$archivos es el resultado de la ejecucion de la consulta
if ($totalRows_archivos > 0)
{ // Show if recordset not empty
while ($row_archivos = mysql_fetch_assoc($archivos));
{
?>
<table width="100%" border="0" align="center">

<tr bgcolor="#EDD589">
<td height="20" valign="top"><span class="irq5"><span class="irq2"><img src="imagen/rar.jpg" alt="" width="41" height="35" /> Archivo del Usuario</span></span><span class="irq5"><strong><span class="centro311"> : <?php echo $_SESSION['MM_Username']; ?></span></strong></span></td>
</tr>
<tr bgcolor="#EDD589">
<td width="50%" height="20" align="right"><a><strong><span class="irq2"><?php echo $row_archivos['texto']; ?></span></strong></a><a href="eliminar_ficheros_cliente.php?archivo_id=<?p hp echo $row_archivos['archivo_id']; ?>"><strong>: Eliminar </strong></a><strong><a href="<?php echo $row_archivos['nombre_archivo']; ?>">Descargas</a></strong></td>
</tr>
</table>
<?php } // Show if recordset not empty ?>