Bonjour,
donc voila comme inscrit dans le titre j'ai un problème avec ma page PHP index donc je voudrais un petit coup de main pour la corriger voila mon problème quand je veux me connecter avec mon pseudo et mon mot de passe de test ou utiliser tous les autre menus cela me renvoie directement sur la page d'accueille.
voici le site le pseudo et le mot de passe sont ''test'' sans les '' biens sur au cas ou.
http://kicash.freeheberg.com
et voici ma page index
<?php
session_start();
if($_GET['refer']) { setcookie ($_GET['refer']); }
include('dbconnect.php');
if($action=='Connexion au Compte' || $action=='Suppression du Compte' || $action=='Nouveau Mot de Passe')
{
$username=$_POST['username'];
$password=$_POST['password'];
$sql=mysql_query("SELECT * FROM users WHERE username='$username' AND fpassword='$password'" )or die(mysql_error());
if(mysql_num_rows($sql))
{
//extract(mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$username' AND fpassword='$password'" )));
//session_start();
session_register("login" );
$_SESSION['login'] = $username;
$login=$username;
}
}
?>
<?php
$sq=mysql_query('SELECT * FROM setupinfo');
$ar=mysql_fetch_array($sq);
extract($ar);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title><?php echo"$ptrname | Gagnez de l'Argent sur Internet !"?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="fr" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="DC.Language" scheme="RFC3066" content="fr" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Normal" />
</head>
<body>
<h1 id="header"><span>Punfrance</span></h1>
<p id="connexion">
Votre pub ici
</p>
<ul id="menuvertical">
<lo>Espace Membres</lo>
<li><a href="index.php">Accueil</a></li>
<li><a href="index.php?tp=signup">Inscription</a><a href="#"></a></li>
<li><a href="index.php?tp=member">Connexion</a><a href="#"></a></li>
<li><a href="index.php?tp=goldmember">Devenir VIP</a><a href="#"></a></li>
<li><a href="#">Item n°5</a></li>
<lo2>Espace Annonceurs</lo2>
<li><a href="index.php?tp=advertise">Annoncer</a><a href="#"></a></li>
<li><a href="index.php?tp=advertise">Connexion</a><a href="#"></a></li>
</ul>
<div id="contenu">
<h2> </h2>
</div>
<?php
$sql=mysql_query("SELECT * FROM banners" );
$rows=mysql_num_rows($sql);
$r=rand(0,$rows);
@mysql_data_seek($sql,$r);
@$arr=mysql_fetch_array($sql);
@extract($arr);
echo"";
$shows=$fshows+1;
mysql_query("UPDATE banners SET fshows=$shows WHERE fnum=$fnum" );
?>
<table width="682" height="67" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="25" colspan="3"><img src="images/content_top.png" width="760" height="44" alt="" /></td>
</tr>
<tr>
<td background="images/bg1.jpg" height="19" alt=""></td>
<td background="images/bg1.jpg" height="19" alt="" align="center" valign="top"><table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr bgcolor="#F2F2F2" >
<td valign="middle" bgcolor="#E4E3E3" class="rang" ><?php
$sql=mysql_query("SELECT * FROM banners" );
$rows=mysql_num_rows($sql);
$r=rand(0,$rows);
@mysql_data_seek($sql,$r);
@$arr=mysql_fetch_array($sql);
@extract($arr);
echo"";
$shows=$fshows+1;
mysql_query("UPDATE banners SET fshows=$shows WHERE fnum=$fnum" );
?>
<?php $c_result = mysql_query("select name, comments, value from design where name='pagebg'" );
$c_row = mysql_fetch_row($c_result);
?>
</td>
<td align="left" bgcolor="#E4E3E3" ><?php
switch($_GET['tp'])
{
case('faq'):
include('faq.php');
break;
case('member'):
include('member.php');
break;
case('signup'):
include('signup.php');
break;
case('specialorder'):
include('specialsorder.php');
break;
case('terms'):
include('terms.php');
break;
case('advertise'):
include('advertise.php');
break;
case('member'):
include('member.php');
break;
case('user'):
include('user.php');
break;
case('goldmember'):
include('goldmember.php');
break;
case('contacts'):
include('contacts.php');
break;
case('register'):
include('register.php');
break;
case('adstats'):
include('adstats.php');
break;
case('ntpemorder'):
include('ntpemorder.php');
break;
case('tpemorder'):
include('tpemorder.php');
break;
case('visitorder'):
include('visitorder.php');
break;
case('suorder'):
include('suorder.php');
break;
case('banorder'):
include('banorder.php');
break;
case(''):
include('home.php');
break;
}
?>
<?php
if($act=='logout')
{
@session_unregister('login'); @session_destroy(); echo"<b>Vous vous êtes bien déconnecté. A bientôt sur le site !</b>";
}
?>
<?php
$sql=mysql_query("SELECT * FROM banners" );
$rows=mysql_num_rows($sql);
$r=rand(0,$rows);
@mysql_data_seek($sql,$r);
@$arr=mysql_fetch_array($sql);
@extract($arr);
echo"";
$shows=$fshows+1;
mysql_query("UPDATE banners SET fshows=$shows WHERE fnum=$fnum" );
?></td>
</tr>
</table></td>
<td background="images/bg1.jpg" height="19" alt=""></td>
</tr>
<tr>
<td height="23" colspan="3"><p>
<img src="images/content_bottom.png" width="760" height="47" alt="" />
</p></td>
</tr>
</table>
<div id="footer">© 2009 Votre site - Script <a href="http://webmasternet.info">MyPTR2</a> par <a href="http://webmasternet.info">Outils wbemaster</a> Design by <a href="http://www.kits-gratuits.net">kits-gratuits.net</a></div>
</body>
</html>
merci a tous de votre aide