ÃÒª×èͺÃÔÉÑ··Õè¨Í§ºÙµà¾×èÍà¢éÒÃèÇÁ§Ò¹
ÅӴѺ |
ºÃÔÉÑ· |
ºÙµ·Õè¨Í§ |
Ç/´/» ·Õè¨Í§ |
include ('connect.php');
mysql_connect($dbhost,$dbuser,$dbpass) or die ("àª×èÍÁµèÍ MySQL äÁèä´é");
mysql_select_db($dbname) or die ("àÅ×Í¡°Ò¹¢éÍÁÙÅäÁèä´é");
mysql_query("set NAMES tis620");
$sql = "SELECT * From tbreserved";
$dbquery = mysql_db_query($dbname,$sql);
$num_rows = mysql_num_rows($dbquery);
$sql .=" order by id ASC LIMIT $Page_Start , $Per_Page";
//$objQuery = mysql_query($strSQL);
$i = 0;
while ($i < $num_rows)
{
$result = mysql_fetch_array($dbquery);
$id = $result[id];
$org = $result[org];
$address = $result[address];
$province = $result[province];
$zipcode = $result[zipcode];
$phone = $result[phone];
$fax = $result[fax];
$email = $result[email];
$area = $result[area];
$contact = $result[contact];
$now = $result[dtnow];
$pay = $result[pay];
echo "
$id |
$org |
$area |
$now |
";
$i++;
}
?>
|