Page php blanche lors de l'affichage
Posté : 16 janv. 2016, 20:34
Bonjour j'ai mis en place une page php, met elle ne s'affiche pas, pouvez-vous m'aider ?
Karyl Lamoureux
<?php
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
include_once 'include/processes.php';
$Login_Process = new Login_Process;
$Status = $Login_Process->welcome_note();
//Cette page permet dafficher la liste des categories
include('include/forum_config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>MatHacker | Index du forum</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<!--[if lte IE 8]><script src="js/html5shiv.js"></script><![endif]-->
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<noscript>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />
</noscript>
</head>
<body>
<!-- Header -->
<header id="header">
<h1><a href="forum_index.php">MatHacker</a></h1>
<nav id="nav">
<ul>
<li><a href="mission.php">Missions</a></li>
<li><a>|</a></li>
<li><a href="forum_index.php">Présentation</a></li>
<li><a href="#">Forum</a></li>
<li><a href="generic.php">Generic</a></li>
<li><a href="elements.php">Elements</a></li>
<?php echo $Status; ?>
</ul>
</nav>
</header>
<!-- Main >-->
<section id="main" class="wrapper">
<div class="container">
<header class="major">
<h2>Forum</h2>
</header>
<div class="content">
<h3><a href="forum_index.php">Index du forum</a></h3>
</div>
<?php
if($_SESSION['user_level'] >= 5) {
?>
<a href="forum_new_category.php" class="button">Nouvelle Catégorie</a>
<?php
}
?>
<table class="categories_table">
<tr>
<th width="80%" style="text-align:center;">Catégorie</th>
<th width="5%" style="text-align:center;">Sujets</th>
<th width="5%" style="text-align:center;">Réponses</th>
<?php
if($_SESSION['user_level'] >= 5) {
?>
<th width="10%" style="text-align:center;">Action</th>
<?php
}
?>
</tr>
<?php
$dn1 = mysql_query('select c.id, c.name, c.description, c.position, (select count(t.id) from topics as t where t.parent=c.id and t.id2=1) as topics, (select count(t2.id) from topics as t2 where t2.parent=c.id and t2.id2!=1) as replies from categories as c group by c.id order by c.position asc');
$nb_cats = mysql_num_rows($dn1);
while($dnn1 = mysql_fetch_array($dn1))
{
?>
<tr>
<td class="forum_cat"><a href="forum_list_topics.php?parent=<?php echo $dnn1['id']; ?>" class="title"><?php echo htmlentities($dnn1['name'], ENT_QUOTES, 'UTF-8'); ?></a>
<div class="description"><?php echo $dnn1['description']; ?></div></td>
<td align="center"><?php echo $dnn1['topics']; ?></td>
<td align="center"><?php echo $dnn1['replies']; ?></td>
<?php
if($_SESSION['user_level'] >= 5) {
?>
<td align="center"><a href="forum_delete_category.php?id=<?php echo $dnn1['id']; ?>"><img src="include/icons/delete.png" alt="Supprimer" /></a>
<?php if($dnn1['position']>1){ ?><a href="move_category.php?action=up&id=<?php echo $dnn1['id']; ?>"><img src="include/icons/up.png" alt="Faire monter" /></a><?php } ?>
<?php if($dnn1['position']<$nb_cats){ ?><a href="move_category.php?action=down&id=<?php echo $dnn1['id']; ?>"><img src="include/icons/down.png" alt="Faire D=descendre" /></a><?php } ?>
<a href="forum_forum_forum_forum_forum_forum_forum_edit_category.php?id=<?php echo $dnn1['id']; ?>"><img src="include/icons/edit.png" alt="Modifier" /></a></td>
<?php
}
?>
</tr>
<?php
}
?>
</table>
<?php
if($_SESSION['user_level'] >= 5) {
?>
<a href="forum_new_category.php" class="button">Nouvelle Catégorie</a>
<?php
}
?>
</div>
</section>
</body>
</html>
Bien cordialement,Karyl Lamoureux