| |
|
|
|
$sql = "SELECT * FROM video";
$sql .= " where status=0";
$sql .= " order by id desc";
$sql .= " limit 0,5";
$result = mysql_query($sql);
$rowvideo = mysql_fetch_array($result);?>
|
|
$rowvideo = mysql_fetch_array($result); ?>
|
$rowvideo = mysql_fetch_array($result); ?>
|
$rowvideo = mysql_fetch_array($result); ?>
|
|
$rowvideo = mysql_fetch_array($result); ?>
|
|
|
$sql = "SELECT *,DATE_FORMAT(event_date,'%d %b %y') as neweventdate FROM calendar";
$sql .= " where status=0";
$sql .= " order by id desc";
$sql .= " limit 0,5";
$result = mysql_query($sql);
$rowcount = 0;
if(mysql_num_rows($result) > 0){?>
|
while($rowcalendar = mysql_fetch_array($result)){
$rowcount++;
if($rowcount > 1){
?>
|
}
?>
|
$sql = "select * from categories where id='".$rowcalendar['categoriesid']."'";
$result2 = mysql_query($sql);
$subrow = mysql_fetch_array($result2);
?>
| ,
|
} ?>
|
| |
}?>
$sql = "SELECT * FROM productandservice order by id desc limit 0,3";
$result = mysql_query($sql);
$rowcount = 0;
while($rowlistmore = mysql_fetch_array($result)){
$rowcount++;
if($rowcount > 1){
?>
|
}
?>
|
|
if($rowlistmore['standardprice'] != $rowlistmore['sellprice']){?>
ราคาปกติ : 0.00
ราคาพิเศษ : 0.00 } else {?>
ราคา : 0.00 } ?>
 |
}?>
|
|
|
|
|
|
|
|
|
|
$sql = "SELECT *,DATE_FORMAT(c_date,'%d %b %y') as newsdate FROM news";
$sql .= " where status=0";
$sql .= " order by id desc";
$sql .= " limit 0,10";
$result = mysql_query($sql);
$rowcount = 0;
if(mysql_num_rows($result) > 0){?>
while($rownews = mysql_fetch_array($result)){
$rowcount++;
if($rowcount > 1){
?>
|
} ?>
 |
|
}}else{ ?>
ยังไม่มีข้อมูล News ค่ะ |
}?>
|
|
include("rightbanner.php");?>
| |
|
|
|
|
|