session_start();
$sess_id = session_id();
include "config.inc.php";
?>
:: NARESUAN UNIVERSITY LANGUAGE CENTRE ::
|
|
$p = $_GET['p'];
if($p != "")
{
?>
$sql_gallery = "SELECT * FROM gallery where folder_name LIKE '%$p%' ORDER by id";
$regist_gallery = mysql_db_query($dbname,$sql_gallery);
$i=0;
while($array_gallery= mysql_fetch_array($regist_gallery))
{
$dir = "gallery/images/$array_gallery[folder_name]/";
$dh = opendir($dir);
while (false !== ($filename = readdir($dh)))
{
$files[$array_gallery[folder_name]][] = $filename;
}
?>
|
$i++;
if($i == 3)
{
echo " ";
$i=0;
}
}
?>
}else
{
?>
Activities |
NULC Facilities |
|
|
2012 |
2013 |
2014 |
|
}
?>
|
|
|