这是我的home.php
:
require('header.php');
这是我的header.php
if (basename(__FILE__) == "home.php"){
echo "you are on home.php";
} else {
echo "you are not on home.php";
}
现在,当我打开网址www.mypage.com/home.php
时,我会看到文字you are not on home.php
答案 0 :(得分:2)
尝试这样的事情
doc-id label roleids
1 A 2,5,6
2 B 2,1
3 C 5
SELECT d.title, d.id as doc_id, m.moduleId as mid , d.type,m.label, STUFF((SELECT ', ' + CAST(rc.roleid AS VARCHAR(10)) [text()] FROM edoc_link_role_req as rc WHERE rc.reqid= cd.reqid FOR XML PATH(''), TYPE) .value('.','NVARCHAR(MAX)'),1,2,' ') as roleid FROM edoc_link_role_req rc
LEFT JOIN edoc_link_req_document cd ON cd.reqid = rc.reqid
LEFT JOIN edoc_document d ON cd.documentid = d.id
WHERE d.installationid = 1