',1) as substrth,substring_index(p_desc_th,'

 

',1) as substren,p_name_th,p_name_en from product where p_id=$_GET[p_id]"; $rs=mysql_query($title); mysql_error(); $tltle=mysql_fetch_array($rs); $word=array("

","<",">","=","/","span","\"","
","style11","class"); ?> <? if($_GET[lang]='th') echo $tltle[p_name_th]; else echo $tltle[p_name_th]; ?> " /> Title "; echo "body {"; echo "color: #".$thm['t_color'].";"; echo "background: #".$thm['bg_color']." ".$thm_bg.");"; echo "}"; echo "a {"; echo "color: #".$thm['l_color'].";"; echo "}"; echo "#main #left h1 a{"; echo "font-size: 12px;"; echo "color: #".$thm['h1_color'].""; echo "}"; echo "#header { "; echo "background: #".$thm['h_color'].";"; echo "}"; echo "#mastdescribe{ "; echo "background: #".$thm['h_color'].";"; echo "}"; echo "#left,#left p{"; echo "color: #".$thm['t_color'].";"; echo "}"; echo ""; ?>

Front Page Banner
\n",1); ?>
0) { if ($_GET['lang'] == "en"){ $sql11 = "select cat_id,sub_id,cat_name_en from category where cat_id=$parentId"; }else{ $sql11 = "select cat_id,sub_id,cat_name_th from category where cat_id=$parentId"; } //echo $sql11."
"; $rs11 = mysql_query($sql11); $lineTitle = mysql_fetch_array($rs11); //echo $lineTitle['sub_id']; $b_name= $lineTitle['cat_name_th'].$lineTitle['cat_name_en']; $parentId = $lineTitle['sub_id']; //echo $parentId; //echo "y=".$y; $title=$lineTitle['cat_id']; $nameTitle[$y]= "".$b_name." > "; $y++; } //echo $nameTitle; if($y!=0){ //$y=$y-1; while($y>=0){ //echo $y; //echo $bid[$x]; $nameTitle1.= $nameTitle[$y]; $y--; } } //$traceStr=implode("/",$b_name); print ""; print ""; print ""; print ""; print "
"; print "

Category: $nameTitle1

"; print "
"; } //$rs=mysql_query($sql); /// row product $sql="select * from product where p_id=".$_GET['p_id']; //echo $sql; $pro=mysql_query($sql); $proLine=mysql_num_rows($pro); ?> ";} $data=$row['p_data']; $data = explode("|", $data); //echo $row['p_id']; //echo $data[0]."
"; // piece1 //echo $data[1]."
"; //echo $data[2]."
"; $linkData=""; if($data[0]!=''){ $linkData=$data[0]; }elseif($data[1]!=''){ $linkData=$data[1]; }elseif($data[2]!=''){ $linkData="show_data.php?p_id=".$row['p_id']; } //echo "linkdata=".$linkData; if($linkData==""){ $data=""; }else{ $data="data sheet"; } ?>
send enquiry


"; } } if($_GET['lang']=='th') echo "
".$row['p_desc_th']; else echo "
".$row['p_desc_en']; ?>