par
LudO^ » 14 juin 2006, 17:49
Voici le code de ma page actuellement (code normal avec juste l'affichage de mes données)
Code : Tout sélectionner
<?php require_once('Connections/class.php'); ?>
<?php
mysql_select_db($database_class, $class);
$query_Recordset_classement = "SELECT * FROM fichier ORDER BY col1 ASC";
$Recordset_classement = mysql_query($query_Recordset_classement, $class) or die(mysql_error());
$row_Recordset_classement = mysql_fetch_assoc($Recordset_classement);
$totalRows_Recordset_classement = mysql_num_rows($Recordset_classement);
?>
<html>
<head>
<title>Jeu "Mon équipe de rêve" - Coupe du Monde 2006 - L'Express / L'Impartial</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<style type="text/css">
<!--
body {
background-color: white;
font-family: verdana, arial, geneva, helvetica, sans-serif;
font-size: 10px;
color: black;
}
dt {
margin-top: 10px;
padding-left: 20px;
border-bottom: 1px solid gray;
}
dd {
margin-left: 20px;
}
a {
text-decoration: none;
color: black;
}
a:hover {
text-decoration: underline;
color: #b72610;
}
.tit {
color: #b72610;
font-weight: bold;
font-size: 1.2em;
}
.img-left {
float: left;
margin: 0px 5px 5px 0px;
}
-->
</style>
<body background="bg_ludo.gif">
<table width=699 border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td width="695" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <div style="border">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="header.gif" width="700" height="125" /></td>
</tr>
<tr>
<td><font size="1">
<?php include "misesajour.php";?>
</font></td>
</tr>
<tr>
<td><font size="1"> </font></td>
</tr>
<tr>
<td><font size="1">
<?php include "menu.php";?>
</font></td>
</tr>
<tr>
<td><strong><font color="#B72610" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
<br>
></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
CLASSEMENT DES JOUEURS<br />
</font></strong>
<table width="600" border="0">
<tr>
<td width="25"><strong><font color="#666666" size="1">Rang</font></strong></td>
<td><strong><font color="#666666" size="1">Equipe</font></strong></td>
<td><strong><font color="#666666" size="1">Capitaine</font></strong></td>
<td><strong><font color="#666666" size="1">Point</font></strong></td>
</tr>
<?php do { ?>
<tr>
<td width="25"><font size="1"><?php echo $row_Recordset_classement['col1']; ?></font></td>
<td width="160"><font size="1"><?php echo $row_Recordset_classement['col6']; ?></font></td>
<td width="200"><font size="1"><?php echo $row_Recordset_classement['col3']; ?> <?php echo $row_Recordset_classement['col4']; ?></font></td>
<td><font size="1"><?php echo $row_Recordset_classement['col5']; ?></font></td>
</tr>
<?php } while ($row_Recordset_classement = mysql_fetch_assoc($Recordset_classement)); ?>
</table></td>
</tr>
</table>
<h2><font size="3"> </font></h2>
</div>
<dl>
<dt> </dt>
</dl>
<div style="font: 0.9em arial, geneva, helvetica, sans-serif;color: #b72610;">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><font size="1">© SNP Société Neuchâteloise
de Presse SA, tous droits de reproduction et de diffusion réservés.</font>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset_classement);
?>
Voici le code de ma page actuellement (code normal avec juste l'affichage de mes données)
[code]<?php require_once('Connections/class.php'); ?>
<?php
mysql_select_db($database_class, $class);
$query_Recordset_classement = "SELECT * FROM fichier ORDER BY col1 ASC";
$Recordset_classement = mysql_query($query_Recordset_classement, $class) or die(mysql_error());
$row_Recordset_classement = mysql_fetch_assoc($Recordset_classement);
$totalRows_Recordset_classement = mysql_num_rows($Recordset_classement);
?>
<html>
<head>
<title>Jeu "Mon équipe de rêve" - Coupe du Monde 2006 - L'Express / L'Impartial</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<style type="text/css">
<!--
body {
background-color: white;
font-family: verdana, arial, geneva, helvetica, sans-serif;
font-size: 10px;
color: black;
}
dt {
margin-top: 10px;
padding-left: 20px;
border-bottom: 1px solid gray;
}
dd {
margin-left: 20px;
}
a {
text-decoration: none;
color: black;
}
a:hover {
text-decoration: underline;
color: #b72610;
}
.tit {
color: #b72610;
font-weight: bold;
font-size: 1.2em;
}
.img-left {
float: left;
margin: 0px 5px 5px 0px;
}
-->
</style>
<body background="bg_ludo.gif">
<table width=699 border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td width="695" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <div style="border">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="header.gif" width="700" height="125" /></td>
</tr>
<tr>
<td><font size="1">
<?php include "misesajour.php";?>
</font></td>
</tr>
<tr>
<td><font size="1"> </font></td>
</tr>
<tr>
<td><font size="1">
<?php include "menu.php";?>
</font></td>
</tr>
<tr>
<td><strong><font color="#B72610" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
<br>
></font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
CLASSEMENT DES JOUEURS<br />
</font></strong>
<table width="600" border="0">
<tr>
<td width="25"><strong><font color="#666666" size="1">Rang</font></strong></td>
<td><strong><font color="#666666" size="1">Equipe</font></strong></td>
<td><strong><font color="#666666" size="1">Capitaine</font></strong></td>
<td><strong><font color="#666666" size="1">Point</font></strong></td>
</tr>
<?php do { ?>
<tr>
<td width="25"><font size="1"><?php echo $row_Recordset_classement['col1']; ?></font></td>
<td width="160"><font size="1"><?php echo $row_Recordset_classement['col6']; ?></font></td>
<td width="200"><font size="1"><?php echo $row_Recordset_classement['col3']; ?> <?php echo $row_Recordset_classement['col4']; ?></font></td>
<td><font size="1"><?php echo $row_Recordset_classement['col5']; ?></font></td>
</tr>
<?php } while ($row_Recordset_classement = mysql_fetch_assoc($Recordset_classement)); ?>
</table></td>
</tr>
</table>
<h2><font size="3"> </font></h2>
</div>
<dl>
<dt> </dt>
</dl>
<div style="font: 0.9em arial, geneva, helvetica, sans-serif;color: #b72610;">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><font size="1">© SNP Société Neuchâteloise
de Presse SA, tous droits de reproduction et de diffusion réservés.</font>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset_classement);
?>[/code]