Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/11/2013, 10:27
Avatar de angel_xx_1990
angel_xx_1990
 
Fecha de Ingreso: junio-2013
Ubicación: Guadalajara
Mensajes: 236
Antigüedad: 10 años, 10 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!