按变量显示页面?page =需要一些帮助吗?

时间:2016-08-18 18:39:36

标签: php

嗨我想通过变量显示一些页面?page =给出错误 解析错误:语法错误,意外' /'在第11行的C:\ AppServ \ www \ index.php

<?php
include 'assets/config.php';
$page = $_GET["page"];
if ($page == "script") {
include("/pages/script.php");
}
if ($page == "how") {
include(/pages/"how.php");
?>

我需要帮助吗

我想通过新变量重定向网址?go =我网站上的网页我的代码请自定义....

*<?php
include '/assets/config.php';
$goto = $_SERVER['QUERY_STRING'];
$RedirectTo = "$goto";
header("Location: $RedirectTo");
exit;
?>*

谢谢

2 个答案:

答案 0 :(得分:1)

也改变这个

$RedirectTo = $goto;

要:

;with cte as (
select dept_nm, cust_nm, row_number() over (partition by t1.dept_id order by start_dts) rn, start_dts from table1 t1
left join table2 t2 
on t1.dept_id = t2.dept_id
left join table3 t3
on t1.cust_id = t3.cust_id
) select * from cte where rn=1

答案 1 :(得分:0)

更改

include("/pages/script.php");
include(/pages/"how.php");

include("pages/script.php");
include("pages/how.php");