"" ) { $_GET['Page'] = (get_magic_quotes_gpc()) ? $_GET['Page'] : addslashes($_GET['Page']); } else { $_GET['Page']="0"; //預設去第一頁 } ////mysql_select_db($database_MySQL, $MySQL); $query_template = sprintf("SELECT * FROM %s_SiteMap WHERE Page=%s and Display='Y' ",$Table_ID, GetSQLValueString($_GET['Page'], "text") ); $template = mysqli_query($MySQL,$query_template) or die(mysqli_error($MySQL)); //echo $query_template; $row_template = mysqli_fetch_assoc($template); $totalRows_template = mysqli_num_rows($template); $Title=$row_template['Title']; // 供 WebClick 使用 $Topic=$row_template['Topic']; // 供 WebClick 使用 $ClickType="main.php"; // 供 WebClick 使用 //echo $query_template."
"; // end 撈版型的 SQL if($totalRows_template==0){ echo "找不到網頁,請確認您的網址正確"; exit; } //Google 點擊統計 //撈configure的SQL //mysql_select_db($database_MySQL, $MySQL); $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'GoogleAnalytics'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error($MySQL)); $row_Configure = mysqli_fetch_assoc($Configure) ; $GoogleAnalytics= $row_Configure['value']; //SEO 關鍵字 //撈KeyWord的SQL //mysql_select_db($database_MySQL, $MySQL); $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'KeyWord'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error($MySQL)); //echo $query_Configure; $row_Configure = mysqli_fetch_assoc($Configure) ; $KeyWord= $row_Configure['value']; //echo $KeyWord; //撈客戶的SQL //mysql_select_db($database_MySQL, $MySQL); $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'CustomerName'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error($MySQL)); $row_Configure = mysqli_fetch_assoc($Configure) ; $CustomerName= $row_Configure['value']; //撈客戶的SQL //mysql_select_db($database_MySQL, $MySQL); $query_Configure = "SELECT * FROM ".$Table_ID."_Configure WHERE item = 'description'"; $Configure = mysqli_query($MySQL,$query_Configure) or die(mysqli_error($MySQL)); $row_Configure = mysqli_fetch_assoc($Configure) ; $description= $row_Configure['value']; ?>