Warning: include(..\public\calendar.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\st_james_public\index.php on line 19
Warning: include() [function.include]: Failed opening '..\public\calendar.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\st_james_public\index.php on line 19
The code for the main index page is as follows:
- Code: Select all
<?php
$page_title = 'Home';
include("header.php");
if ((isset($_GET['PageID'])) && (is_numeric($_GET['PageID']))){
$pageID = $_GET['PageID'];
}else{
$pageID = 1;
}
james_connect();
$SQL = "SELECT * FROM james_pages , james_content WHERE james_content.james_pages_pageID = james_pages.pageID && james_pages.pageID = $pageID";
$results = mysql_query($SQL) or die(mysql_error());
if ($pageID == 6){
include("..\public\calendar.php");
}
while ($row = mysql_fetch_array($results)) {
echo ("<h4>${row["contentTitle"]}</h4>");
echo ("<p>${row["contentContent"]}</p>");
}
james_close();
include("footer.php");
?>
and the issue arises at the line with:
- Code: Select all
if ($pageID == 6){
include("..\public\calendar.php");
}
I'm completely stumped..any help would be appreciated



