$category_top = "WIND TURBINE";
$category_btm = "GENERATORS";
if($_GET["id"] == "2")
{
$category_top = "ELEVATOR ENGINE";
$category_btm = "APPLICATIONS";
}
if($_GET["id"] == "3")
{
$category_top = "ANALYSIS and";
$category_btm = "OPTIMIZATION";
}
if($_GET["id"] == "4")
{
$category_top = "ELECTRICAL ";
$category_btm = "VEHICLE MOTORS";
}
if($_GET["id"] == "5")
{
$category_top = "DRIVER and CARD";
$category_btm = "DESIGN";
}
if($_GET["id"] == "6")
{
$category_top = "SOFTWARE";
$category_btm = "DEVELOPMENT";
}
?>
echo $category_top ?>
echo $category_btm ?>
$q = execute_mysql_query("select id, code, title_en as title, about_en, brochure_en, presentation_en, catalog_en from products where category=". $_GET["id"]);
$r = mysql_fetch_array($q);
$i = 0;
while($r)
{
$qimg = execute_mysql_query("select fileName from imageorders where propId = ". $r["id"]. " order by fileOrder");
$rimg = mysql_fetch_array($qimg);
$imgfile = "imagesproducts/urun.jpg";
if($rimg)
{
$imgfile = "images/content/". $rimg["fileName"];
}
?>
'">
'"> echo $r["code"] ?>
'"> echo $r["title"] ?>
'"> echo str_replace("","",str_replace("
","",substr($r["about_en"],0,500))) ?>
$top = 0;
if($r["brochure_en"] != "" && $r["brochure_en"] != null) {
?>
}
if($r["presentation_en"] != "" && $r["presentation_en"] != null) {
?>
}
if($r["catalog_en"] != "" && $r["catalog_en"] != null) {
?>
} ?>
$r = mysql_fetch_array($q);
if($r)
{ ?>
}
}
?>