![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
03/11/2013, 10:27
|
![Avatar de angel_xx_1990](http://static.forosdelweb.com/customavatars/avatar516536_2.gif) | | | Fecha de Ingreso: junio-2013 Ubicación: Guadalajara
Mensajes: 236
Antigüedad: 11 años, 7 meses Puntos: 0 | |
Respuesta: Paginar web php 2º INTENTO....tambien fallido!!!
<?php
if(array_key_exists('pg', $_GET)){
$page = $_GET['pg'];
}
include ('conexion.php');
$con=mysqli_connect("xxxxxxxx.com","xxxxxxxxxx","x xxxxxxxxx")or die ("No hay conexion");
$conteo = mysqli_query($con,"SELECT COUNT(*) as conteo FROM form WHERE seccion = 'Moda'");
printf ($conteo);
while($row = mysqli_fetch_array($result))
{
$conteo = $row['conteo'];
}
$max_num_paginas = intval($conteo/20);
$segmento = mysqli_query($con,"SELECT * FROM form WHERE seccion = 'Moda' LIMIT ".(($page-1)*20).", 20 ");
while ($row=mysqli_fetch_array($result))
{ CONTENIDO WHILE }
...Yo no se que hacer me estoy volviendo loco...ayuda! |