Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.