";
$qry = mysql_query ("SELECT * FROM mainnews WHERE id='".$id."';");
$b_color = mysql_result($qry,0, "bg");
$picdirid = trim(mysql_result($qry,0, "kep_dir"));
$kep_border = trim(mysql_result($qry,0, "kep_border"));
if ( mysql_result($qry,0, "kep") == ""){$ikep = "";}else{
$pictmp = str_replace('../','/var/home/tothimi/html/',mysql_result($qry,0, "kep"));
$ikep = "$kep_lb_boxb $kep_lb_boxe";
$kep_lb_boxb = "";
$kep_lb_boxe = "";
}
$mtxt = $mtxt . "".mysql_result($qry,0, "date")."
".$ikep.str_replace('=hun/img/','=../hun/img/',nl2br(mysql_result($qry,0, "txt")));
$ikep = "";
///////////// ///////////// /////////////
///////////// ///////////// /////////////
$qry_block = mysql_query("SELECT * FROM mainnews_block WHERE newsid='".$id."' ORDER BY 'id'");
if (mysql_num_rows($qry_block) > 0) {
for ($j_block = 0; $j_block$kep_lb_boxb $kep_lb_boxe";
$kep_lb_boxb = "";
$kep_lb_boxe = "";
}
$mtxt = $mtxt . "
".$ikep.str_replace('=hun/img/','=../hun/img/',nl2br(mysql_result($qry_block,$j_block, "txt")));
$ikep = "";
}}
///////////// ///////////// /////////////
///////////// ///////////// /////////////
echo " ".mysql_result($qry,0, "cim")." ".$mtxt.$tmppicblock;
$mtxt = "";
echo " |