当我使用直接链接时,PHP包含给我错误

时间:2012-11-19 01:04:34

标签: php file hyperlink get include

我试图使用php include包含一个php文件,问题是我需要在URL中使用变量...我知道我不能用相对链接做这个,所以我是使用直接链接但收到此错误:Image Of The Error

我想知道是否有人可以告诉我我做错了什么......

以下是include代码:

<?php

include 'http://www.procapturemarketing.net/Scripts/PCMSSystemsOwned.php?ref=NMVT';

?>

这是PCMSSYSTEMSOWNED.php:

<?php

$systems = explode(', ',$row_rsUsers['Systems']);

if (in_array("Empower", $systems) and $_GET['ref'] != "Empower") { ?>

<li onclick="location.href='nmvt/Home.php';" class="nmvtli"><a href="nmvt/Home.php">Empower System</a></li>

<?php } if (in_array("MCA", $systems) and $_GET['ref'] != "MCA") { ?>

<li onclick="location.href='nmvt/Home.php';" class="nmvtli"><a href="nmvt/Home.php">MCA System</a></li>

<?php } if (in_array("Neucopia", $systems) and $_GET['ref'] != "Neucopia") { ?>

<li onclick="location.href='nmvt/Home.php';" class="nmvtli"><a href="nmvt/Home.php">Neucopia System</a></li>

<?php } if (in_array("NMVT", $systems) and $_GET['ref'] != "NMVT") { ?>

<li onclick="location.href='nmvt/Home.php';" class="nmvtli"><a href="nmvt/Home.php">NMVT System</a></li>

<?php } ?>

此外,如果您需要,还有记录集rsUsers

$colname_rsUsers = "-1";
if (isset($_GET['MM_Username'])) {
  $colname_rsUsers = $_GET['MM_Username'];
}
mysql_select_db($database_myBackOfficeConn, $myBackOfficeConn);
$query_rsUsers = sprintf("SELECT * FROM Users WHERE Username = %s", GetSQLValueString($colname_rsUsers, "text"));
$rsUsers = mysql_query($query_rsUsers, $myBackOfficeConn) or die(mysql_error());
$row_rsUsers = mysql_fetch_assoc($rsUsers);

0 个答案:

没有答案