0

我正在尝试使用 php 包含一个 php 文件include,但问题是我需要在 URL 中使用变量...我知道我不能使用相对链接来执行此操作,因此我使用的是直接链接但收到此错误:错误的图像

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

这是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);
4

0 回答 0