Bonjour j'ai un probleme de lecture de la colonne 'crédit' de ma table 'user' et de ma base 'membre' le nombre de crédit ne s'affiche pas
<?php
session_start();
if (!isset($_SESSION['login'])) {
header ('Location: index.php');
exit();
}
$base = mysql_connect ('localhost', 'root', '');
mysql_select_db ('user', $base);
$sql = 'SELECT credits FROM membre';
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
while($data = mysql_fetch_assoc($req))
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<title>Razorcraft</title>
<link href="http://fonts.googleapis.com/css?family=Ubuntu+Condensed" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Kreon" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style3.css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1>Razorcraft</h1>
</div>
<div id="menu">
<ul>
<li class="first current_page_item"><a href="index.php">Accueil</a></li>
<li><a href="membre.php">Boutique</a></li>
</ul>
<br class="clearfix" />
</div>
</div>
<div id="splash">
<img src="images/pic1.jpg" width="1180" height="295" alt="" />
</div>
<div id="page">
<div id="connexion">
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p> Bienvenue <?php echo htmlentities(trim($_SESSION['login'])); ?> !<br />
</p><p>Vous avez <?php echo $data['credits'];?> credits</p>
<p><a href="deconnexion.php">Deconnexion</a>
</p>
</div>
<br class="clearfix" />
</div>
</div>
</div>
<div id="footer">
© 2012 Untitled | Razorcraft| </div>
</body>
</html>
merci