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 27 28 29 30
| mysql_select_db($database_localhost, $localhost);
$query_R1 = "SELECT * FROM equiper1 ORDER BY nom_equipe ASC";
$query_limit_R1 = sprintf("%s LIMIT %d, %d", $query_R1, $startRow_R1, $maxRows_R1);
$R1 = mysql_query($query_limit_R1, $localhost) or die(mysql_error());
$row_R1 = mysql_fetch_assoc($R1);
if (isset($_GET['totalRows_R1'])) {
$totalRows_R1 = $_GET['totalRows_R1'];
} else {
$all_R1 = mysql_query($query_R1);
$totalRows_R1 = mysql_num_rows($all_R1);
}
$totalPages_R1 = ceil($totalRows_R1/$maxRows_R1)-1;
?><link rel="stylesheet" type="text/css" href="_css/style.css">
<?php
mysql_free_result($R1);
?>
<table border="1">
<tr>
<td>id_equipe</td>
<td>nom_equipe</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_R1['id_equipe']; ?></td>
<td><?php echo $row_R1['nom_equipe']; ?></td>
</tr>
<?php } while ($row_R1 = mysql_fetch_assoc($R1)); ?>
</table> |
Partager