嗨我想通过变量显示一些页面?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;
?>*
谢谢
答案 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");