Tema: fpdf y mysql
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/02/2009, 17:19
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 16 años, 5 meses
Puntos: 2237
Respuesta: fpdf y mysql

Ok, ya vi el error, cambia esto:
Código PHP:
$results mysql_query($consulta$conexion);
$row=mysql_fetch_array($results);
$contador=0;
while (
$contador mysql_num_rows($results)) {
$contador++; 
Por esto:
Código PHP:
$results mysql_query($consulta$conexion);
while (
$row=mysql_fetch_array($results)) { 
Lo que pasa es que al final del while original debias repetir el mysql_fetch_array(), pero es mejor hacerlo directo y te ahorras un par de lineas.
__________________
- León, Guanajuato
- GV-Foto