probleme pagination en php
Bonjour a tous,
est ce que vous pouvez m'aidez svp j'ai un soucis quand j'ajoute le code de pagination ma page s'affiche une erreur et je ne sais ou d'ouvient voila mon code:
Code:
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body><table align="center" bgcolor="#000000"><tr>
<td>anim
</td></tr>
<tr><td>menu</td></tr>
<tr><td height="27" bgcolor="#FFFFFF"><table width="219" border="0">
<tr>
<td width="94" height="21"><?php
@session_start();
include("connection.php");
$a=mysql_query("select * from projet ");
//$b=mysql_fetch_array($a);
//echo $b['id_projet'];
$nombMaxPage=3;
//$nombMaxPage = 10; //nombre par page
$numPageCour =1; //n° de la fiche courante
$Ndeb=@$_GET["num"]; //1ère fiche transmise par l'URL
?>
Bonjour,<span class="session"><?php echo'',$_SESSION['login_user'],''; ?></span></td>
<td width="10"><b>|</b></td>
<td width="101"><h5><a href="deconnexion.php"><strong>Deconnexion</strong></a></h5></td>
</tr>
</table></td></tr>
<form method="post" action="form2.php">
<table width="258" height="48" border="0" align="center">
<tr>
<td height="21" colspan="3" bgcolor="#000000"><div align="center"><strong>Liste des Projets pour CQExport</strong></div></td>
</tr>
<?php while (($b=mysql_fetch_array($a)) && ($numPageCour<$nombMaxPage+$Ndeb)){
if($numPageCour>=$Ndeb)
{
?>
<tr> <td width="252" height="21" bgcolor="#000000"><a href="affich_config.php?id_projet=<?php echo($b['id_projet']); ?>"><?php echo($b['nom_projet']); ?></a></td>
<td> </td>
</tr>
<?php $numPageCour++; } ?>
</table></form></tr></table>
<table align="center" cellpadding="3">
<tr>
<?php
// Navigation: Des fiches avant ?
if($Ndeb > 0) { ?>
<td valign="top"><a href="">Retour</a></td>
<?php } ?>
<td><?php // N° des pages
$Npag = ceil(mysql_numrows($a)/$nombMaxPage);
for($i=1;$i<=$Npag;$i++) {
// Page courante ?
if($Ndeb == ($i-1)*$nombMaxPage) { ?>
Page <?php echo $i; ?>
<?php } else { ?>
<a href=""> <?php echo $i; ?></a>
<?php }
} ?></td>
<?php // Des fiches après ?
if($val) { ?>
<td valign="top"><a href="aa.php">Suite</a></td>
<?php } ?>
</tr></table></body></html> |
voila erreur :
Code:
1 2
|
Parse error: parse error in D:\CQIET\wamp\www\projet_NDS\user.php on line 66 |
Merci D'avance.