Jump to content

Error with panels scripts


dean7

Recommended Posts

Hi all , im coding a panels script for my website but, I carnt see nothing wrong with it but its only displaying a white page.

 

 

<?php
session_start();
include ("includes/db_connect.php");
include ("inlcudes/functions.php");
logincheck();
include ("includes/smile.php");

ini_set ('display_errors', 1);
error_reporting (E_ALL);

$username = $_SESSION['username'];
$fetch1 = mysql_query("SELECT * FROM users WHERE username='$username'") or die (mysql_error());
	$fetch = mysql_fetch_object($fetch1);
?>
<table width="90%" cellpadding="0" cellspacing="0" border="1" bordercolor="#000000">
<tr>
<td colspan="4" background="header.jpg">Your CP</td>
</tr>
<td>
<?php
if ($fetch->userlevel == "1" || $fetch->userlevel == "2" || $fetch->userlevel == "3" || $fetch->userlevel == "4" || $fetch->userlevel == "5" || $fetch->rank == "owner"){
echo ("<a href='ModCP.php'>Mod CP</a>");
}elseif ($fetch->userlevel == "2" || $fetch->userlevel == "3" || $fetch->userlevel == "4" || $fetch->userlevel == "5" || $fetch->rank == "owner"){
echo ("<a href='HModCP.php'>Head Mod CP</a>");
}elseif ($fetch->userlevel == "3" || $fetch->userlevel == "4" || $fetch->userlevel == "5" || $fetch->rank == "owner"){
echo ("<a href='AdminCP.php'>Admin CP</a>");
}elseif ($fetch->rank == "owner"){
echo ("<a href='OwnerCP.php'>Owner CP</a>");
}
?>
</td>
</tr>
</table>

 

Does anyone know why its only displaying a white page?

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/208946-error-with-panels-scripts/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.