problème avec array Notice: Undefined variable:
bonjour ;
probleme de Notice: Undefined variable: in action
le message d'erreur pointe sur la ligne :if!$action|| !in_array($action,$actions_array))
et j'utilise le wampserver .
Code:
1 2 3 4 5 6 7 8 9
| $actions_array = array('register','connect','admin','option','MyNews','show','edit','plan');
if (!$action || !in_array($action,$actions_array))
{
include_once("body.php");
}else{
if($action == 'plan'){
..
} |
meme probleme ici
Notice: Undefined index: login
Code:
1 2 3 4 5 6 7 8 9
|
<?php
$ses = $_SESSION['login'];
if($ses){
?>
<a href="deconnexion.php">Déconnا</a>
<?php
}else{
?> |