fetch_array($result)){ $file = get_attachment("product", $row['id'], "photo1"); if ($file["file_name"] != "") { list($width, $height, $type, $attr) = getimagesize($file["path"].$file["file_name"]); if($height>$width){ $imgset = "width=80"; }else{ $imgset = "height=80"; } $photo = ''; } else { $photo = ''; } $list .='
'.$photo.'
'; $count++; } $sql2 = "SELECT * FROM `category` WHERE `id` = ".$cid; $result2=mysql_query($sql2); $row2=$db->fetch_array($result2); ?> 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; ?>
'; } else { $photo = ''; } ?>
fetch_array($category_result)){ $temp_str = preg_replace('#\n#','
',$category_row['e_content']); $content_array = explode('
',$temp_str); $category_list .= '
'; foreach($content_array as $key => $value){ $category_list .= '
'.$value.'
'; } $category_list .='
'; /*$category_list .= '
'.$category_row['e_content'].'
'; */ } ?>