Recommend this page to a friend! |
MsDoc Generator | > | All threads | > | Problem with a session | > | (Un) Subscribe thread alerts |
|
Andy - 2008-09-12 08:31:32
When i put the session the script give me an error(the....not exist)
<? session_start(); require_once('clsMsDocGenerator.php'); $doc = new clsMsDocGenerator(); $doc->addImage('http://www.website.nl/db_newswork/logo/websiteKOP.PNG', 600, 90); $doc->addParagraph(' '); $doc->addParagraph(' Klantnummer:   '.$_GET['sid'].'', array('text-align' => '"center"', 'font-size' => '16pt', 'font-weight' => 'bold')); $doc->addParagraph(' Klantnaam: '.$_GET[sname].'', array('text-align' => '"center"', 'font-size' => '16pt', 'font-weight' => 'bold')); $doc->addParagraph(' Rayon: '.$_GET['rid'].' Omschrijving: '.$_GET[omsch].'', array('text-align' => '"center"', 'font-size' => '16pt', 'font-weight' => 'bold')); $doc->addParagraph(' '); $doc->startTable(); $header = array('Pr', 'Code', 'Plaats', 'Omschrijving', 'Netto', 'Bruto'); $aligns = array('center', 'center', 'center', 'center', 'center', 'center'); $valigns = array('middle', 'middle', 'middle', 'middle', 'middle', 'middle'); $doc->addTableRow($header, $aligns, $valigns, array('font-weight' => 'bold')); $j=1; while($j<$_GET['nr_cel']) { $plaats=str_replace("'","\'",$_SESSION[c][$j]); $omschrijving=str_replace("'","\'",$_SESSION[d][$j]); $header = array(''.$_SESSION[a][$j].'', ''.$_SESSION[b][$j].'', ''.$plaats.'', ''.$omschrijving.'', ''.$_SESSION[e][$j].'', ''.$_SESSION[f][$j].''.$_SESSION[g][$j].''); $aligns = array('center', 'center', 'center', 'center', 'right', 'right'); $valigns = array('middle', 'middle', 'middle', 'middle', 'middle', 'middle'); $doc->addTableRow($header, $aligns, $valigns, NULL); ++$j; } $header = array('', '', '', 'Totaal', ''.$_GET[ss1].'', ''.$_GET[s2].''); $aligns = array('center', 'center', 'center', 'center', 'right', 'right'); $valigns = array('middle', 'middle', 'middle', 'middle', 'middle', 'middle'); $doc->addTableRow($header, $aligns, $valigns, NULL); $doc->endTable(); $doc->addParagraph(' '); $doc->addImage('http://www.website.nl/db_newswork/logo/websiteVoet.PNG', 600, 90); $doc->output(); ?> Can you help me with that? |
info at phpclasses dot org
.