fetch_array($result)){ $file = get_attachment("category", $row["id"], "photo1"); if ($file["file_name"] != "") { list($width, $height, $type, $attr) = getimagesize($file["path"].$file["file_name"]); if($height>$width){ $imgset = "width=200"; }else{ $imgset = "height=200"; } $photo = ''; } else { $photo = ''; } $temp_str = preg_replace('#\n#','
',$row['e_content']); $content_array = explode('
',$temp_str); $list .='
'.$photo.'
'.$row["e_name"].'
'; foreach($content_array as $key => $value){ $list .= '
'.$value.'
'; } $list .= '
'; } ?> Vbond found =".$foundpos; $tmppage = "".substr($myBasePath, $foundpos+1); $tmppage=str_replace('.php','',$tmppage); //echo "
found =".$tmppage; if($_SERVER['QUERY_STRING']!=""){ // $tmppage.="?".$_SERVER['QUERY_STRING']; } $bannertype=$tmppage; ?>