liam1412
12-06-2008, 08:24
Just a quick one coz this is driving me mad. As far as im aware nothing has changed in the script and it suddenly started throwing this error. Can anyone spot anything??
<?php
session_start();
if(!isset($_SESSION['userid']) || ($_SESSION['userlevel'] != 3))
{
header("location:unauthorised.php");
exit();
}
include 'header.php';
?>
<div class="content">
<div class="contentheader">
<div class="contentheaderpad">
<h2>Admin Area</h2>
</div>
</div>
<div class="contentpad">
Welcome to the admin area. From here you can manage users, forums, add listings and manage every part of the site. Any activity from within this
page is monitored and any abuse will result in the IP address been blocked from access to the site in anyway.
</div>
</div>
<div class="content">
<div class="contentheader">
<div class="contentheaderpad">
<h2>Hosting Provider Admin</h2>
</div>
</div>
<div class="contentpad">
<center>
<?php
include 'mysql.php';
$getCurrentHosts = mysql_query("SELECT * FROM hostingproviders ORDER BY hostingproviderid");
$numHosts = mysql_num_rows($getCurrentHosts);
if($numHosts > 1)
{
while($fetchCurrentHosts = mysql_fetch_array($getCurrentHosts))
{
$providername = $fetchCurrentHosts['providername'];
$bannerCode = stripslashes($fetchCurrentHosts['bannercode']);
echo $bannerCode;
?>
<br />
<a href="edithostdets.php">Edit This entry</a> | <a href="admin.php?deletehost=1">Delete This Listing</a>
<br />
<?php
}
}
else
{
echo '<br />We currently have no hosts listed at this time<br /><br /><br />';
}
mysql_close();
?>
</center>
</div>
</div>
<?php
include 'footer.php';
?>
<?php
session_start();
if(!isset($_SESSION['userid']) || ($_SESSION['userlevel'] != 3))
{
header("location:unauthorised.php");
exit();
}
include 'header.php';
?>
<div class="content">
<div class="contentheader">
<div class="contentheaderpad">
<h2>Admin Area</h2>
</div>
</div>
<div class="contentpad">
Welcome to the admin area. From here you can manage users, forums, add listings and manage every part of the site. Any activity from within this
page is monitored and any abuse will result in the IP address been blocked from access to the site in anyway.
</div>
</div>
<div class="content">
<div class="contentheader">
<div class="contentheaderpad">
<h2>Hosting Provider Admin</h2>
</div>
</div>
<div class="contentpad">
<center>
<?php
include 'mysql.php';
$getCurrentHosts = mysql_query("SELECT * FROM hostingproviders ORDER BY hostingproviderid");
$numHosts = mysql_num_rows($getCurrentHosts);
if($numHosts > 1)
{
while($fetchCurrentHosts = mysql_fetch_array($getCurrentHosts))
{
$providername = $fetchCurrentHosts['providername'];
$bannerCode = stripslashes($fetchCurrentHosts['bannercode']);
echo $bannerCode;
?>
<br />
<a href="edithostdets.php">Edit This entry</a> | <a href="admin.php?deletehost=1">Delete This Listing</a>
<br />
<?php
}
}
else
{
echo '<br />We currently have no hosts listed at this time<br /><br /><br />';
}
mysql_close();
?>
</center>
</div>
</div>
<?php
include 'footer.php';
?>