le 12/12/2005 à 09:02
Configuration du nombre d'enregistrement max d'une table
j'y avai pas pensé, merci bocou.

Je sais pas si je suis très claire. Je vous mets le code dès fois que ce soit plus clair.<?
include("connexion.php");
//SI MENU CHOISI
//**************
if (isset($_GET["IDRub"]))
{
// Requete Menu choisi
$Rec_Gam = "SELECT Menu_ID, Menu_Titre FROM Menu where Menu_ID=".$_GET["IDRub"];
$result_Gam = mysql_query($Rec_Gam);
$row_Gam = mysql_fetch_row($result_Gam);
$ID_Gam = $row_Gam[0];
$Titre_Gam = $row_Gam[1];
// Requete SsMenu du Menu choisi
$Rec_SsGam = "SELECT Menu_ID, Menu_Titre FROM Menu where Menu_Parent=".$_GET["IDRub"];
$result_SsGam = mysql_query($Rec_SsGam);
//DIV Barre NOIRE
echo "<div id='barrenoir'><b>";
//effichage menu choisi
echo "<span id='textbarrenoir'> Accueil >> ".$Titre_Gam."</span>";
//affichage sous menu
echo "<div id='Ssmenu'><span id='textbarrenoir'><b>";
While ($row_SsGam = mysql_fetch_row($result_SsGam))
{
$ID_SsGam = $row_SsGam[0];
$Titre_SsGam = $row_SsGam[1];
echo $Titre_SsGam." ";
}
echo "</b></span></div></div>";
//FIN DIV Barre NOIRE
// DIV CENTRE
// SI PAS DE SOUS MENU
//********************
if(!isset($ID_SsGam))
{
echo "<div id='centre'>";
// Recherche IDParent de la rubrique
$Rec_Parent="SELECT Menu_Parent From Menu Where Menu_ID=".$ID_Gam;
$Result_Parent=mysql_query($Rec_Parent);
$Row_Parent = mysql_fetch_row($Result_Parent);
$ID_Parent=$Row_Parent[0];
switch ($ID_Parent)
{
case 1:
Include("texte.php");
break;
case 5:
Include("texte.php");
break;
case 6:
Include("piece.php");
break;
case 7:
Include("animation.php");
break;
case 8:
Include("animation.php");
break;
case 9:
switch ($ID_Gam)
{
case 25:
Include("plusinfo.php");
break;
case 26:
Include("acces.html");
break;
case 27:
Include("ldd.php");
break;
break;
}
}
}
//SI SOUS MENU
//************
else
{
//CEST ICI QUE çA NE FONCTIONNE PAS
//apparement je passe pas dans le while
//*************************************
While ($row_SsGam1 = mysql_fetch_row($result_SsGam))
{
$ID_SsGam1 = $row_SsGam1[0];
$Titre_SsGam1 = $row_SsGam1[1];
echo "<br><br>".$Titre_SsGam1." ";
}
}
echo "</div>";
//FIN DIV CENTRE
}
// SI Menu PAS CHOISI
//*******************
else
{
echo "<div id='barrenoir'><b><span id='textbarrenoir'> Accueil</span></b></div>";
// DIV CENTRE si aucun menu selectionner
echo "<div id='centre'>";
Include("accueil.htm");
echo "</div>";
}
include("deconnexion.php");
?>
Chargement en cours