Bonjour,
je cherche à Limiter le nombre de logiciels par page sur :
http://boujdourweb.online.fr/logitheque ... php3?cat=1
voici le code de la page :
	
	
	
		
Merci bcp
				
			je cherche à Limiter le nombre de logiciels par page sur :
http://boujdourweb.online.fr/logitheque ... php3?cat=1
voici le code de la page :
		Code:
	
	<? include("conf.inc.php3"); ?>
<html>
<head>
<title>.:: LOGITHEQUE ::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
a{text-decoration=none}
a:hover{text-decoration=underline; color: <? echo $hlink ?>}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="<? echo $link ?>" vlink="<? echo $vlink ?>" 
alink="<? echo $alink ?>">
<p align="center"><b><font color="#336699" size="6" face="Arial, Helvetica, sans-
serif">LOGITHEQUE</font></b></p>
<table width="444" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td width="444" height="138" valign="top"> 
      <p align="center"><font face="Arial, Helvetica, sans-serif" size="2"> 
<?
	if($cat=="nul"):
	echo("<b><font size=3 face=arial color=#000000>Recherche dans toutes les 
catégories</font></b>");
	else:
	$mysql_link = mysql_connect($host,$login,$pass);
	mysql_select_db($base, $mysql_link);
	$query = "select * from $table_categories where NB='$cat'";
	$resultat = mysql_query($query, $mysql_link);
	
		while($row = mysql_fetch_row($resultat)) {
		$categorie = $row[1];
		}
	echo("<b><font size=3 face=arial color=#000000>$categorie</font></b>");
	endif;  
	
?>
        <br>
        <a href="index.php3"><font size="1">Liste des catégories</font></a></font></p>
      <p align="center"><font face="Arial, Helvetica, sans-serif" size="2">Vous 
        pouvez choisir de trier les informations par <a href="details_cat.php3?tri=nom&cat=<? 
echo $cat ?>">nom</a>, 
        ou par <a href="details_cat.php3?tri=date&cat=<? echo $cat ?>">date</a>. Vous 
        pouvez également effectuer une recherche :</font></p>
      <form name="form1" method="post" action="details_cat.php3?cat=<? echo $cat ?>">
        <div align="center">
          <p> 
            <input type="text" name="recherche">
            <input type="submit" name="submit" value="Rechercher">
            <input type="hidden" name="posted" value="1">
          </p>
        </div>
      </form>
          </td>
    </tr>
</table>
<?
  
include "compteurdl.php3";
$mysql_link = mysql_connect($host,$login,$pass);
mysql_select_db($base, $mysql_link);
	if (($tri == 'nom') && ($cat!=nul)):
	$query = "select * from $table where cat='$cat' order by 'nom'";
	$resultat = mysql_query($query, $mysql_link);
	elseif (($tri == 'nom') && ($cat==nul)):
	$query = "select * from $table order by 'nom'";
	$resultat = mysql_query($query, $mysql_link);
	elseif (($tri == 'date') && ($cat!=nul)):
	$query = "select * from $table where cat='$cat' order by 'dateUS' DESC";
	$resultat = mysql_query($query, $mysql_link);
	elseif (($tri == 'date') && ($cat==nul)):
	$query = "select * from $table order by 'dateUS' DESC";
	$resultat = mysql_query($query, $mysql_link);
	elseif($posted):
		if(!$recherche):
		print("<div align=center><b><font color=red face=Arial size=2>Vous n'avez pas 
saisi de critère de recherche! Veuillez recommencer.</font></b></div>");
		$query = "select * from $table";
		$resultat = mysql_query($query, $mysql_link);
	else:
	$query  = 'SELECT * FROM ';
	$query .= $table;
	$query .= ' WHERE NOM LIKE "%' . $recherche . '%" ';
	$query .= ' ORDER BY NOM';
	$resultat = mysql_query($query, $mysql_link);
	endif;
	else:
	
	if($cat==nul):
	$query = "select * from $table";
	$resultat = mysql_query($query, $mysql_link);
	
	else:
	$query = "select * from $table where cat='$cat'";
	$resultat = mysql_query($query, $mysql_link);
	
	endif;
	
	endif;
$num = mysql_num_rows($resultat);
print("<table width=\"500\" cellspacing=\"0\" align=\"center\">\n");
print("<tr><td height=\"2\" colspan=\"6\" valign=\"top\" bgcolor=\"#ffffff\"><b><font 
color=\"#336699\" face=Arial size=2>");
	if($num==0):
	print("Aucun logiciel n'a été trouvé.");
	elseif($num==1):
	print("$num logiciel trouvé.");
	else:
	print("$num logiciels trouvés.");
	endif;
print("</font></b></td></tr>\n");
print("</table><br>");
	while ($ligne = mysql_fetch_array($resultat)) {
	echo("<table width=500 cellspacing=0 align=center>");
	print("<tr><td height=\"2\" colspan=\"6\" valign=\"top\" bgcolor=\"#336699
\"></td></tr>\n");
	print("<tr><td bgcolor=#cccccc>");
	printf("<img src='images/fleche.gif'><font color=white size=2 face=Arial>  <a 
href='description.php3?id=%s&cat=%s'><b>%s v. %s</b></a></font>\n",
	$ligne["ID"], $ligne["cat"], $ligne["nom"], $ligne["version"]);
	
		if($ligne["langue"] == "français"):
		echo("  <img src=images/france.gif align='middle'>");
		endif;
	print("</td><td align=right bgcolor=#cccccc>");
	$aujourdhui = date("z");
	$ajoute = $ligne["ajoute"];
	if(($aujourdhui-$ajoute)<='14'):
	echo("<b><font color=red size=1 face=verdana>Nouveau!   </font></b>");
	endif;
	printf("<font color=black face=Arial size=2>Ajouté le %s</font></td></tr>\n",
	$ligne["dateFR"]);
	print("<tr><td bgcolor=#eeeeee colspan='2'>");
	printf("<font color=black size=2 face=verdana>%s...</font></td></tr>\n",
	substr($ligne["description"], 0, 70));
	printf("<tr><td bgcolor=white colspan=2><font color=#666666 size=2 face=arial>Taille: 
%s    os: %s    Licence: %s</font></td>\n",
	$ligne["taille"], $ligne["os"], $ligne["licence"]);
	printf("<tr><td bgcolor=white colspan=2><font color=#666666 size=2 face=arial><img 
src='images/tele_xfois.gif' border=0 align='absbottom'>\n",
	$ligne['ID'], $ligne['ID']);
	nbdl($ligne['ID']);
	echo(" (dernier le ");
	lastdl($ligne['ID']);
	echo(")");
	print("<tr><td height=\"2\" colspan=\"6\" valign=\"top\" bgcolor=\"#336699
\"></td></tr>\n");
	print("</font></td></tr><tr><td bgcolor=white> </td></tr>\n");
	echo("</table>");
	}
?>
</BODY>
</HTML>Merci bcp
 
     
 
		 
 
		 
 
		 
 
		 
 
		 
 
		