Hi,
I have a piece of code, which display a statement through the header function. How to "change" the code to open this data in pdf file?
$query = "SELECT licznik, suma, technika FROM dane"
$result = $this->bean->db->query($query, true);
$row = $this->bean->db->fetchByAssoc($result);
if($row[licznik]==0) $row[licznik]=0;
if($row[suma]==0) $row[suma]=0;
if($row[technika]==0) $row[technika]=0;
$blad = "Licznik : ".str_pad($row[licznik],3,' ',STR_PAD_LEFT).
'\n'.' Suma : '.str_pad($row[suma],5,' ',STR_PAD_LEFT).',00'.
'\n'.' technika : '.str_pad($row[technika],5,' ',STR_PAD_LEFT).',00';
Header('Location: index.php='.$this->bean->id."&error=".$blad);