Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/06/2011, 17:49
fmo_paco
 
Fecha de Ingreso: abril-2011
Ubicación: parral
Mensajes: 16
Antigüedad: 13 años
Puntos: 0
Pregunta error Query was empty

Tengo un prblema al imprimir un reporte haber si me pueden ayudar este es el codigo:
Código PHP:
Ver original
  1. <?php
  2.  require_once('class.ezpdf.php');
  3.  $pdf =& new Cezpdf('a4');
  4. $pdf->ezSetCmMargins(1,1,1.5,1.5);
  5. $pdf->ezImage("images/jey.jpg", 0, 490, 'none', '20');
  6. $conexion=mysql_connect('localhost','root','') or die('Problemas al conectar');
  7. $resEmp = "SELECT nombre, dia, cantidad FROM inventario_frutas_verduras";
  8. $resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
  9. $totEmp = mysql_num_rows($resEmp);
  10.  
  11. $ixx = 0;
  12. while($datatmp = mysql_fetch_assoc($resEmp)) {
  13.     $ixx = $ixx+1;
  14.     $data[] = array_merge($datatmp, array('num'=>$ixx));
  15. }
  16. $titles = array(
  17.                 'nombre'=>'<b>Nombre</b>',
  18.                 'dia'=>'<b>Dia</b>',
  19.                 'cantidad'=>'<b>Cantidad</b>',
  20.             );
  21. $options = array(
  22.                 'shadeCol'=>array(0.9,0.9,0.9),
  23.                 'xOrientation'=>'center',
  24.                 'width'=>500
  25.             );
  26. $pdf->ezText($txttit, 12);
  27. $pdf->ezTable($data, $titles, '', $options);
  28. $pdf->ezText("\n\n\n", 10);
  29. $pdf->ezText("<b>Fecha:</b> ".date("d/m/Y"), 10);
  30. $pdf->ezText("<b>Hora:</b> ".date("H:i:s")."\n\n", 10);
  31. $pdf->ezStream();
  32.             ?>

Este es el error queme sale : Query was empty
Gracias!!!