Unable to connect to database.".mysql_error()); if(!$myrow=mysql_fetch_array($result)) die("No such entry"); $displayheading=do_htmlentities(stripslashes($myrow["heading"])); $newstext = stripslashes($myrow["text"]); $newstext = str_replace("
", "\n", $newstext); $newstext = undo_htmlspecialchars($newstext); if($myrow["category"]==0) echo $l_general; else { $tmpsql="select * from ".$tableprefix."_categories where catnr=".$myrow["category"]; if(!$tmpresult = mysql_query($tmpsql, $db)) die("Unable to connect to database.".mysql_error()); $tmprow=mysql_fetch_array($tmpresult); $cattext=display_encoded(stripslashes($tmprow["catname"])); $tmpsql2="select * from ".$tableprefix."_catnames where catnr=".$tmprow["catnr"]." and lang='".$act_lang."'"; if(!$tmpresult2=mysql_query($tmpsql2,$db)) die("Unable to connect to database.".mysql_error()); if($tmprow2=mysql_fetch_array($tmpresult2)) { if(strlen($tmprow2["catname"])>0) $cattext=display_encoded(stripslashes($tmprow2["catname"])); } echo $cattext; } ?>
"; if(isset($backurl)) echo ""; if(isset($actionurl)) echo ""; ?> *"; echo $l_heading.":"; if(bittst($proposereq,BIT_3)) echo ""; ?> *:
"; echo ""; echo ""; echo "$l_editownproposals"; echo ""; } } ?>