[Tableaux] Erreur de définition de variable
salut,
j'ai un pb au niveau de mon site.
qd il était sur le serveur ça marchait bien, mais qd je l'ai eu sur mon serveur local des notices se sont affichés :
----------------------------------------------------------------
Notice: Undefined index: created in c:\program files\easyphp1-8\www\boxing\home.php on line 20
Notice: Undefined variable: data in c:\program files\easyphp1-8\www\boxing\includes\dbconn.php on line 54
Notice: Undefined index: boxer in c:\program files\easyphp1-8\www\boxing\home.php on line 134
Notice: Undefined variable: data in c:\program files\easyphp1-8\www\boxing\includes\dbconn.php on line 54
--------------------------------------------------------------
voici mon code de la partie erronée
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| if (!session_is_registered("USER_ID"))
{
header ("Location: index.php");
exit;
}
if($_REQUEST['created']=='true')
{
$smarty->assign('created','true');
$smarty->assign('regtourtext','Boxer Created Successfully.<br> To Activate Boxer <a id=crt href=cart.php>Go to Cart</a> for Payment.');
}
$smarty->assign('alnk1',LNKCOLOR);
$smarty->assign('welcome',WELCOME.$_SESSION['FIRST_NAME']);
$smarty->assign('uid',$_SESSION['USER_ID']);
$boxer = $lib->boxerlist($_SESSION['USER_ID']);
if(!count($boxer))
{
$smarty->assign('noboxer','true');
header("location: welcome.php");
} |