"") $navid = (int)@$_REQUEST['navid']; if (@$_REQUEST['pageid'] <> "") $pageid = (int)@$_REQUEST['pageid']; //$SQLQuery = "SELECT * FROM nspage where status=1 and ChildNavBarID = " . $navid; if (isset($navid)) { $SQLQuery = "SELECT * FROM nspage where status=1 and ChildNavBarID = " . mysql_escape_string($navid); }else{ $SQLQuery = "SELECT * FROM nspage where status=1 and nspageID = " . mysql_escape_string($pageid); } $result = mysql_query ($SQLQuery, $dbh) or die ($SQLQuery . ": " . mysql_error ($dbh)); if ($row = mysql_fetch_assoc($result)) { $nspageid = $row['nspageID']; $nid = $row['ChildNavBarID']; }else{ header("Location: /error.php"); } //this section creats the yellow bar array and the right bar array (pages don't have to have a yellow bar). // if there is no yellow bar then it's a header.php (footer.php) // if there is a yellow bar an only one page content then it's header3.php (header2.php) // if there is a yellow bar and more than one page content then it's header2.php (footer2.php) $rowY = Array(); $rowRight = Array(); $SQLQuery = "SELECT * FROM nspage_pagecontent inner join SpecialPagecontent on nspage_pagecontent.PageContentID = SpecialPagecontent.SpecialPagecontentID where placement=1 and nspageID = " . $nspageid . " order by weight"; $result = mysql_query ($SQLQuery, $dbh) or die ($SQLQuery . ": " . mysql_error ($dbh)); if (mysql_num_rows($result) > 0) { while ($rowYellow = mysql_fetch_assoc($result)) $rowY[] = $rowYellow; }else{ $whichHeader = ''; } $SQLQuery = "SELECT * FROM nspage_pagecontent inner join PageContent on nspage_pagecontent.PageContentID = PageContent.PagecontentID where placement=2 and nspageID = " . $nspageid . " order by weight"; $result = mysql_query ($SQLQuery, $dbh) or die ($SQLQuery . ": " . mysql_error ($dbh)); if (! isset($whichHeader) ) { if (mysql_num_rows($result) > 1) { $whichHeader='2'; }else{ $whichHeader = '2'; } } while ($row = mysql_fetch_assoc($result)) $rowRight[] = $row; ?> "" ) { ?>
_on.gif" border=0> _on.gif" border=0> _on.gif" border=0> _on.gif" border=0> _on.gif" border=0> _on.gif" border=0>
bgcolor="#cac9c9" valign=top height=10>
bgcolor="#cac9c9" valign=top>
width=274 class=yellowboxcell id=yellowbox>
Site Map | Privacy Policy | Terms of Use