Header("Content-Type: text/html; charset=utf-8");
session_start();
//----------------script to make include absolute path--------------
function absolute_include($file)
{
/*
http://scripts.franciscocharrua.com/absolute-include.php
*/
$folder_depth = substr_count($_SERVER["PHP_SELF"] , "/");
if($folder_depth == false)
$folder_depth = 1;
include(str_repeat("../", $folder_depth - 1) . $file);
}
//----------------------------------------------------------------
absolute_include("startconnect.php");
?>
ที่พัก ดอทคอม
absolute_include("head.php");
?>
include("left_default.php");
?>
คุณอยู่ที่ > sitemap
Sitemap
ที่พัก
//.htaccess is RewriteRule ^.+/([0-9]+)/$ /th/teepak/view.php?tid=$1
$offset = date("j")*10;
//อิงตามวันที่
$sql = "SELECT name,tid FROM teepak WHERE allowed>'0' AND name != '' ORDER BY name DESC LIMIT ".$offset.",50";
$result = mysql_query($sql,$con) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo ''.$row['name'].' ';
}
?>