assign("anrs",$typnames); $typnames=array(); $qry=mysqli_query($dbconn, "SELECT id,titel FROM titel"); while($res=mysqli_fetch_assoc($qry)) { $typnames[$res["id"]] = $res["titel"]; } $smarty->assign("titels",$typnames); $smarty->assign("adresse",$kdnres); $smarty->display("umschlagshow.tpl"); } else { error("Dieser Kunde existiert nicht!"); } //$pdf = makeumschlagAddress(0,"asd"); //$tmppdfname = str_replace(array(" ","."),array("_","_"),microtime()); //savePDF($pdf,"./temp/pdftemp/$tmppdfname.pdf"); //$smarty->assign("pdffile","./temp/pdftemp/$tmppdfname.pdf"); //$smarty->display("umschlagshow.tpl");