Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/03/2013, 19:48
echo_
 
Fecha de Ingreso: noviembre-2011
Ubicación: Paris
Mensajes: 450
Antigüedad: 13 años, 4 meses
Puntos: 7
Respuesta: No muestra query

Este es mi código


Código PHP:
<?php


     
require_once '../funciones.php';
     
     
//calse sqli
     
require '../class.db.php';
       
$database = new Base();
     
     
$folio=$_GET['1up'];
     
         
$querys "SELECT * FROM registros";
        global 
$results $database->get_results$querys );
       
       
       
       

     require(
'fpdf/fpdf.php');

     class 
PDF extends FPDF{

     
     function 
Header(){
         
// Logo
         
$this->Image('logo.jpg',0,0,210);
         
$this->Ln(50);
      
         global 
$title;

             
$this->SetFont('Arial','',11);  
             
$this->SetDrawColor(0);
             
$this->SetTextColor(0,0,0);
             
$this->SetLineWidth(1);
             
$this->SetXY(81,238.5);
             
$this->Cell(0,0,$title,0,0,'L',0); 
             
$this->Ln(10);
    
    
             global 
$title2;
             
$this->SetXY(10,43.8);
             
$this->SetFont('Arial','B',13);
             
$this->SetTextColor(0,0,0);
             
            
             
$tipo=6;
             
        
             (
$tipo==1)? $valor=49 : (
             (
$tipo==2)? $valor=98.2 : (
             (
$tipo==3)? $valor=165.3 : (
             (
$tipo==4)? $valor=229 : ( 
             (
$tipo==5)? $valor=297 $valor=363.2))));
            
             
$this->Cell($valor,379,$title2,0,0,'C',0); 
             
$this->Ln(20);
     }

     
     function 
Footer(){
         
$this->SetY(-15);
         
$this->SetFont('Arial','',10);
         
$this->SetTextColor(128);
         
$this->Cell(0,10,'Ensenada B.C. a 30 de Junio del 2013',0,0,'R');
     }

     
     function 
ChapterTitle($num$label){   
         
$this->SetFont('Arial','',12);
         
$this->SetFillColor(200,220,255);
         
$this->Ln(4);
     }


     function 
fechas($file){
         
$txt="
                       "
.$results[0][1]."
         23/04/2013
            23/04/2013"
;
        
         
$this->SetFont('helvetica','',11);
            
$this->SetXY(11.5,45.3); 
         
$this->MultiCell(162,5,$txt); 
         
$this->Ln();
         
$this->SetFont('','','I'); 
         
$this->SetXY(37,250);
     }


     function 
matriculas($file){   
         
$texto="
         123
         123
         123
         123
         123
         123
         123
         123"
;
   
         
$this->SetFont('helvetica','',11);
         
$this->SetXY(14,75); 
         
$this->MultiCell(192,6.5,$texto); 
         
$this->Ln();
         
$this->SetFont('','','I'); 
         
$this->SetXY(37,250);
     }


     function 
nombres($file){
         
$texto1="
         Pancho pantera lopez
         Pancho pantera lopez 
         Pancho pantera lopez
         Pancho pantera lopez
         Pancho pantera lopez
         Pancho pantera lopez
         Pancho pantera lopez
         Pancho pantera lopez"
;
          
         
$this->SetFont('helvetica','',11);
         
$this->SetXY(52,75); 
         
$this->MultiCell(192,6.5,$texto1); 
         
$this->Ln();
         
$this->SetFont('','','I'); 
         
$this->SetXY(37,250);
     }


     function 
correos($file){
         
$texto2="
         [email protected]
         [email protected]
         [email protected]
         [email protected]
         [email protected]
         [email protected]
         [email protected]
         [email protected]"
;
         
         
$this->SetFont('helvetica','',11);
         
$this->SetXY(129,75); 
         
$this->MultiCell(192,6.5,$texto2); 
         
$this->Ln();
         
$this->SetFont('','','I'); 
         
$this->SetXY(37,250);
     }
     
     
     function 
infoadicional($file){
         
$texto2="
                               [email protected]                     
                                                   $4,890.00
                                                        Congreso de tecnologia    
                               lorem ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type."
;
         
         
$this->SetFont('helvetica','',11);
         
$this->SetXY(10,142.3); 
         
$this->MultiCell(182,5.3,$texto2); 
         
$this->Ln();
         
$this->SetFont('','','I'); 
         
$this->SetXY(37,250);
     }


     function 
PrintChapter($num$title$file){
         
$this->AddPage();
         
$this->ChapterTitle($num,$title);
         
$this->fechas($file);
         
$this->matriculas($file);
         
$this->nombres($file);
         
$this->correos($file);
         
$this->infoadicional($file);
     }
}

 

     
$pdf = new PDF();
     
$title '2,500';
     
$title2 'x';

     
$pdf->SetTitle($title);
     
$pdf->PrintChapter(1,'','');
     
$pdf->Output('newpdf.pdf''I'); 
                
?>