$sql="select hi_product from text";
$rs=mysql_query($sql);
$hilight=mysql_fetch_array($rs);
echo wordwrap($hilight[hi_product],83,"
\n",1);
?>
include_once('config/config.inc.php');
if($_GET['cat_id']){
//$sql="select * from category where sub_id=".$_GET['cat_id'];
///// title ///////////////////////////////////////////////////////////////////////////////////
$y=0;
$parentId = $_GET['cat_id'];
//echo $parentId ;
while ($parentId > 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 "
";
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);
?>
if($_GET['lang']=='en'){
?>
-
3builders
3/3 Moo 2, Tiwanon Rd.,
Bangklang, A. Muang,
Pathumthani, Thailand,
12000.
-
Phone : +66 (0) 2979 2982
Fax : +66 (0) 2979 2984
Mobile : 089 444 8875
Email : 3builders@polysource.co.th
}else{
?>
-
3builders
3/3 หมู่ 2, ถนนติวานนท์,
บ้านกลาง อ.เมือง,
ปทุมธานี 12000
-
โทรศัพท์ : +66 (0) 2979 2982
แฟกซ์ : +66 (0) 2979 2984
มือถือ : 089 444 8875
อีเมลล์ : 3builders@polysource.co.th
}
?>
3Builders - Reliability in Customer Engineering.
|
include_once('config/config.inc.php');
if($_GET['lang']=='th')
$sql="select cat_name_th,cat_id from category where sub_id=0 and cat_status='A'";
else
$sql="select cat_name_en,cat_id from category where sub_id=0 and cat_status='A'";
$rs=mysql_query($sql);
?>
$i=0;
while($row=mysql_fetch_array($rs)){
$y=$i+1;
?>
=wordwrap($row['cat_name_th'].$row['cat_name_en'],25," \n",1)?> |
|
$i++;
}
?>
|
|
|
![](images/bottommix.jpg)