Voila, j'ai encore un probleme de tableau
tout marche, les infos s'affiche comme il le faut, mais, le tableau s'affiche horizontalement ! Pourriez-vous m'aider svp ?
@+,
Nico
Code
<!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" >
<head>
<title>Votre titre ici !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.gif" type="image/ico" />
<link rel="stylesheet" type="text/css" href="style.css" title="default" media="screen" />
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<div id="contenu">
<div class="cat">
<h2>Teams</h2>
<p>
<?php
if ($page=="team" AND empty($_GET['membre'])){
?>
<table>
<tr>
<th>ID</th>
<th>Pseudo</th>
<th>Hits</th>
</tr>
<?php
require("inc/config.inc.php");
mysql_connect($host,$username,$password);
mysql_select_db($bdd_name);
$retour = mysql_query('SELECT * FROM teams ORDER BY id DESC');
while ($donnee = mysql_fetch_array($retour))
{
?>
<tr>
<td><?php echo $donnee['id']; ?></td>
<td><?php echo '<a href="?p=team&membre=' . $donnee['id'] . '">'; ?><?php echo $donnee['pseudo']; ?></a></td>
<td><?php echo $donnee['compteur']; ?></td>
</tr>
<?php
}
}
?>
</table>
<?php
if (isset($_GET['membre'])){
?>
<table>
<tr>
<th>Pseudo</th>
<th>Prenom</th>
<th>Age</th>
<th>Nationalité</th>
<th>E-Mail</th>
<th>MSN</th>
<th>Photo</th>
<th>Processeur</th>
<th>Carte m</th>
<th>Carte g</th>
<th>DD</th>
<th>Memoire</th>
<th>Ecran</th>
<th>souris</th>
<th>tapis</th>
<th>casque</th>
<th>connection</th>
<th>reso</th>
<th>os</th>
<th>Config</th>
<th>Steam ID</th>
</tr>
<?php
require("inc/config.inc.php");
mysql_connect($host,$username,$password);
mysql_select_db($bdd_name);
$id = $_GET['membre'];
$retour = mysql_query("SELECT * FROM teams WHERE id='$id'");
while ($donnees = mysql_fetch_array($retour))
{
$pseudo = $donnees['pseudo'];
$prenom = $donnees['prenom'];
$age = $donnees['age'];
$nationalite = $donnees['nationalite'];
$email = $donnees['email'];
$msn = $donnees['msn'];
$photo = $donnees['photo'];
$processeur = $donnees['processeur'];
$carte_mere = $donnees['carte_mere'];
$carte_graphique = $donnees['carte_graphique'];
$disque_dur = $donnees['disque_dur'];
$memoire = $donnees['memoire'];
$ecran = $donnees['ecran'];
$souris = $donnees['souris'];
$tapis = $donnees['tapis'];
$casque = $donnees['casque'];
$connection = $donnees['connection'];
$resolution = $donnees['resolution'];
$os = $donnees['os'];
$config = $donnees['config'];
$steam_id = $donnees['steam_id'];
$compteur = $donnees['compteur'];
}
?>
<tr>
<td><?php echo $pseudo; ?></td>
<td><?php echo $prenom; ?></td>
<td><?php echo $age; ?></td>
<td><?php echo $nationalite; ?></td>
<td><?php echo $email; ?></td>
<td><?php echo $msn; ?></td>
<td><?php echo $photo; ?></td>
<td><?php echo $processeur; ?></td>
<td><?php echo $carte_mere; ?></td>
<td><?php echo $carte_graphique; ?></td>
<td><?php echo $disque_dur; ?></td>
<td><?php echo $memoire; ?></td>
<td><?php echo $ecran; ?></td>
<td><?php echo $souris; ?></td>
<td><?php echo $tapis; ?></td>
<td><?php echo $casque; ?></td>
<td><?php echo $connection; ?></td>
<td><?php echo $resolution; ?></td>
<td><?php echo $os; ?></td>
<td><?php echo $config; ?></td>
<td><?php echo $steam_id; ?></td>
</tr>
<?php
$compteur++;
mysql_query("UPDATE teams SET compteur = '$compteur' WHERE id='$id'");
?>
</table>
<?php
}
?>
</p>
<p> </p>
</div>
</div>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Votre titre ici !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.gif" type="image/ico" />
<link rel="stylesheet" type="text/css" href="style.css" title="default" media="screen" />
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<div id="contenu">
<div class="cat">
<h2>Teams</h2>
<p>
<?php
if ($page=="team" AND empty($_GET['membre'])){
?>
<table>
<tr>
<th>ID</th>
<th>Pseudo</th>
<th>Hits</th>
</tr>
<?php
require("inc/config.inc.php");
mysql_connect($host,$username,$password);
mysql_select_db($bdd_name);
$retour = mysql_query('SELECT * FROM teams ORDER BY id DESC');
while ($donnee = mysql_fetch_array($retour))
{
?>
<tr>
<td><?php echo $donnee['id']; ?></td>
<td><?php echo '<a href="?p=team&membre=' . $donnee['id'] . '">'; ?><?php echo $donnee['pseudo']; ?></a></td>
<td><?php echo $donnee['compteur']; ?></td>
</tr>
<?php
}
}
?>
</table>
<?php
if (isset($_GET['membre'])){
?>
<table>
<tr>
<th>Pseudo</th>
<th>Prenom</th>
<th>Age</th>
<th>Nationalité</th>
<th>E-Mail</th>
<th>MSN</th>
<th>Photo</th>
<th>Processeur</th>
<th>Carte m</th>
<th>Carte g</th>
<th>DD</th>
<th>Memoire</th>
<th>Ecran</th>
<th>souris</th>
<th>tapis</th>
<th>casque</th>
<th>connection</th>
<th>reso</th>
<th>os</th>
<th>Config</th>
<th>Steam ID</th>
</tr>
<?php
require("inc/config.inc.php");
mysql_connect($host,$username,$password);
mysql_select_db($bdd_name);
$id = $_GET['membre'];
$retour = mysql_query("SELECT * FROM teams WHERE id='$id'");
while ($donnees = mysql_fetch_array($retour))
{
$pseudo = $donnees['pseudo'];
$prenom = $donnees['prenom'];
$age = $donnees['age'];
$nationalite = $donnees['nationalite'];
$email = $donnees['email'];
$msn = $donnees['msn'];
$photo = $donnees['photo'];
$processeur = $donnees['processeur'];
$carte_mere = $donnees['carte_mere'];
$carte_graphique = $donnees['carte_graphique'];
$disque_dur = $donnees['disque_dur'];
$memoire = $donnees['memoire'];
$ecran = $donnees['ecran'];
$souris = $donnees['souris'];
$tapis = $donnees['tapis'];
$casque = $donnees['casque'];
$connection = $donnees['connection'];
$resolution = $donnees['resolution'];
$os = $donnees['os'];
$config = $donnees['config'];
$steam_id = $donnees['steam_id'];
$compteur = $donnees['compteur'];
}
?>
<tr>
<td><?php echo $pseudo; ?></td>
<td><?php echo $prenom; ?></td>
<td><?php echo $age; ?></td>
<td><?php echo $nationalite; ?></td>
<td><?php echo $email; ?></td>
<td><?php echo $msn; ?></td>
<td><?php echo $photo; ?></td>
<td><?php echo $processeur; ?></td>
<td><?php echo $carte_mere; ?></td>
<td><?php echo $carte_graphique; ?></td>
<td><?php echo $disque_dur; ?></td>
<td><?php echo $memoire; ?></td>
<td><?php echo $ecran; ?></td>
<td><?php echo $souris; ?></td>
<td><?php echo $tapis; ?></td>
<td><?php echo $casque; ?></td>
<td><?php echo $connection; ?></td>
<td><?php echo $resolution; ?></td>
<td><?php echo $os; ?></td>
<td><?php echo $config; ?></td>
<td><?php echo $steam_id; ?></td>
</tr>
<?php
$compteur++;
mysql_query("UPDATE teams SET compteur = '$compteur' WHERE id='$id'");
?>
</table>
<?php
}
?>
</p>
<p> </p>
</div>
</div>
