// ข่าวประชาสัมพันธ์ --------------?>
ข่าวประชาสัมพันธ์ทั่วไป
include "../connect.php";
$sql="select * from new where catagory_id='1' order by today DESC";
$result=mysql_query($sql);
$Num_Rows=mysql_num_rows($result);
$result=mysql_query($sql);
echo "";
echo "";
$intRows = 0;
while($dbarr=mysql_fetch_array($result))
{
echo "";
$intRows++;
if($intRows<4){
?>
$sql_p="select * from photo where id_photo='".$dbarr["id_photo"]."'";
$result_p=mysql_query($sql_p);
$dbarr_p=mysql_fetch_array($result_p);
?>
" width="90" height="85" border="0" align="left"/> |
echo $dbarr["head"]; ?>
if ($dbarr[to_student]!=''){echo "ถึง : ".$dbarr[to_student];?> } ?>
if ($dbarr[detail]!=''){echo "รายละเอียด : ".$dbarr[detail];?> } ?>
if ($dbarr[date_plase]!=''){echo "วันเวลา/สถานที่ : ".$dbarr[date_plase];?> } ?>
if ($dbarr[date_in]!=''){echo "สิ้นสุดประกาศ : ".$dbarr[date_in];?> } ?>
|
}
else { $more=1 ;
?>
}
echo" | ";
if(($intRows2)%2==0)
{
echo" ";
}
}
echo" ";
?>
|
if ($more=='1'){ ?> more }?>
|
// ข่าวประชาสัมพันธ์ --------------?>

ข่าวฝึกอบรม
// ข่าวฝึกอบรม --------------?>
include "../connect.php";
$sql2="select * from new where catagory_id='2' order by today DESC";
$result2=mysql_query($sql2);
$Num_Rows2=mysql_num_rows($result2);
$result2=mysql_query($sql2);
echo "";
echo "";
$intRows2 = 0;
while($dbarr2=mysql_fetch_array($result2))
{
echo "";
$intRows2++;
if($intRows2<4){
?>
$sql_p2="select * from photo where id_photo='".$dbarr2["id_photo"]."'";
$result_p2=mysql_query($sql_p2);
$dbarr_p2=mysql_fetch_array($result_p2);
?>
" width="90" height="85"/>
|
echo $dbarr2["head"]; ?>
if ($dbarr2[to_student]!=''){echo "ถึง : ".$dbarr2[to_student];?> } ?>
if ($dbarr2[detail]!=''){echo "รายละเอียด : ".$dbarr2[detail];?> } ?>
if ($dbarr2[date_plase]!=''){echo "วันเวลา/สถานที่ : ".$dbarr2[date_plase];?> } ?>
if ($dbarr2[date_in]!=''){echo "สิ้นสุดประกาศ : ".$dbarr2[date_in];?> } ?>
|
}
else { $more2=1 ;
?>
}
echo" | ";
if(($intRowsx)%2==0)
{
echo" ";
}
}
echo" ";
?>
|
if ($more2=='1'){ ?> more }?>
|
// ข่าวฝึกอบรม --------------?>

ข่าวทุนการศึกษา
// ข่าวทุนการศึกษา --------------?>
include "../connect.php";
$sql3="select * from new where catagory_id='3' order by today DESC";
$result3=mysql_query($sql3);
$Num_Rows3=mysql_num_rows($result3);
$result3=mysql_query($sql3);
echo "";
echo "";
$intRows3 = 0;
while($dbarr3=mysql_fetch_array($result3))
{
echo "";
$intRows3++;
if($intRows3<4){
?>
$sql_p3="select * from photo where id_photo='".$dbarr3["id_photo"]."'";
$result_p3=mysql_query($sql_p3);
$dbarr_p3=mysql_fetch_array($result_p3);
?>
" width="90" height="85"/>
|
echo $dbarr3["head"]; ?>
if ($dbarr3[to_student]!=''){echo "ถึง : ".$dbarr3[to_student];?> } ?>
if ($dbarr3[detail]!=''){echo "รายละเอียด : ".$dbarr3[detail];?> } ?>
if ($dbarr3[date_plase]!=''){echo "วันเวลา/สถานที่ : ".$dbarr3[date_plase];?> } ?>
if ($dbarr3[date_in]!=''){echo "สิ้นสุดประกาศ : ".$dbarr3[date_in];?> } ?>
|
}
else { $more3=1 ;
?>
}
echo" | ";
if(($intRowsx)%2==0)
{
echo" ";
}
}
echo" ";
?>
|
if ($more3=='1'){ ?> more }?>
|
// ข่าวทุนการศึกษา --------------?>

ข่าวรับสมัครงาน
// ข่าวรับสมัครงาน --------------?>
$sql4="select * from new where catagory_id='4' order by today DESC";
$result4=mysql_query($sql4);
$Num_Rows4=mysql_num_rows($result4);
$result4=mysql_query($sql4);
echo "";
echo "";
$intRows4 = 0;
while($dbarr4=mysql_fetch_array($result4))
{
echo "";
$intRows4++;
if($intRows4<4){
?>
$sql_p4="select * from photo where id_photo='".$dbarr4["id_photo"]."'";
$result_p4=mysql_query($sql_p4);
$dbarr_p4=mysql_fetch_array($result_p4);
?>
" width="90" height="85"/>
|
echo $dbarr4["head"]; ?>
if ($dbarr4[to_student]!=''){echo "ถึง : ".$dbarr4[to_student];?> } ?>
if ($dbarr4[detail]!=''){echo "รายละเอียด : ".$dbarr4[detail];?> } ?>
if ($dbarr4[date_plase]!=''){echo "วันเวลา/สถานที่ : ".$dbarr4[date_plase];?> } ?>
if ($dbarr4[date_in]!=''){echo "สิ้นสุดประกาศ : ".$dbarr4[date_in];?> } ?>
|
}
else { $more4=1 ;
?>
}
echo" | ";
if(($intRowsx)%2==0)
{
echo" ";
}
}
echo" ";
?>
|
if ($more4=='1'){ ?> more }?>
|
// ข่าวรับสมัครงาน --------------?>