dean7 Posted July 26, 2010 Share Posted July 26, 2010 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 More sharing options...
wildteen88 Posted July 26, 2010 Share Posted July 26, 2010 Move these lines ini_set ('display_errors', 1); error_reporting (E_ALL); So they are before the session_start(); line. Are any errors shown? Link to comment https://forums.phpfreaks.com/topic/208946-error-with-panels-scripts/#findComment-1091382 Share on other sites More sharing options...
dean7 Posted July 26, 2010 Author Share Posted July 26, 2010 Yeah thanks that showed the errors which I manged to sort, but now its only showing the "Mod CP" none of the others even know im the Rank/Userlevel to see them all. Any other reason for this? Thanks Link to comment https://forums.phpfreaks.com/topic/208946-error-with-panels-scripts/#findComment-1091390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.