Hi, I'm trying to make a PDF format for my web system but I'm starting and it sends me an error.
Parse error: syntax error, unexpected '$ this' (T_VARIABLE), expecting ',' or ')' in C: \ xampp \ htdocs \ testpdf \ report.php on line 23
This is my code for a file
function Footer(){
$this->SetY(-15);
$this->SetFont('Arial','I',8);
$this->Cell(0,10, 'Pagina ' $this->PageNo().'/{nb}',0,0,'C' );
}
And this is my code from another file:
<?php
include 'reporte.php';
require 'conexion.php';
$query = "SELECT * FROM mvs";
$resultado = $mysqli->query($query);
$pdf = new REPORTE(); // Recibe parametros para el tamaño de la hoja (se pueden meter arreglos)
$pdf->AliasPages(); //Esta linea sirve para poner en funcionamiento la variable nb
$pdf->Addpage();
$pdf->SetFillColor(232,232,232);
$pdf->SetFont('Arial','B',12); //Asigna valores para el contenido
$pdf->Cell(70,6,'MVS',1,0,'C',1); //Crea celdas decontenido
$pdf->Cell(20,6,'ID',1,0,'C',1);
$pdf->Cell(70,6,'VALOR',1,0,'C',1);
$pdf->output();
?>
But I can not find my mistake ... Could you help me?