query($qry); $page = $db->getrec(); ?> query("Select * from `text_page` where parentid=".$r['id']." order by id asc"); if($re!=0){ //$title_lang=$re['nl']; if($title_lang){ $pn='-'.ucfirst($title_lang); }elseif($pgname){ $pn='-'.ucfirst($pgname); } } else { //print '
';print_r($content_res);print '
'; #$title="title_".$lang; */ $SQL = "select * from `text_page` where cap_id =".$id; $content_rec = $db->query($SQL); $content_res = $db->getrec(); $title_lang=$content_res['browser_title']; if($title_lang){ $pn='-'.ucfirst($title_lang); }elseif($_GET['sid']){ $sid=$_GET['sid']; $SQL1 = "select * from `text_page` where cap_id =".$sid; $content_rec1 = $db1->query($SQL1); $content_res1 = $db1->getrec(); $title_lang1=$content_res1['browser_title']; $pn='-'.ucfirst($title_lang1); } else { $pn='-'.ucfirst($pgname); } ?> Events by Laura