contrairement a tous les message ke g pu laissé sur le forum ;G trouvé le probleme .mais je c pa pkoi.
voici mon :
<? include("connect.inc.php");
include("heads.inc.php");
$req=$_SERVER['REQUEST_METHOD'];
if($req=="POST")
$choix=$_POST['choix'];
else{
$choix=$_GET['choix'];
$offset=$_GET['offset'];
$nbmax=$_GET['nbmax'];
}
if($choix==NULL)
{
echo"<center><strong>VOUS AVEZ AUCUN CHOIX</strong></center>";
echo"<hr width=80% align=\"middle\" />
<center><strong><a href='anip.php'>RETOUR A LA PAGE D'ACCEUIL</a></strong></center>";
}
else{
if(!isset($offset))$offset=0;
if(!isset($nbmax)) $nbmax=5;
$query="SELECT id_style FROM style WHERE (style.style)='$choix'";
$resultat=mysql_query($query);
$nbst=mysql_num_rows($resultat);
if($nbst==0)
{
echo"<center><strong>Il n'y a pas encore de script pour la rubrique $choix.</strong></center>";
}
else{
while($tableau=mysql_fetch_array($resultat)){
$id_style=$tableau["id_style"];
$queryst="SELECT no FROM possede WHERE (possede.id_style)='$id_style'";
$resst=mysql_query($queryst);
$nbidx=mysql_num_rows($resst);
$nbp=ceil($nbidx/$nbmax);
//
$queryst="SELECT no FROM possede WHERE (possede.id_style)='$id_style' LIMIT $offset,$nbmax ";
$resst=mysql_query($queryst);
//$nbid=mysql_num_rows($resst);
while($tablea=mysql_fetch_array($resst)){
$no=$tablea["no"];
$queryscr="SELECT id,script FROM script WHERE (script.no)='$no' LIMIT $offset,$nbmax";
$resscr=mysql_query($queryscr);
while($table=mysql_fetch_array($resscr)){
$id=$table["id"];
$script=$table["script"];
$queryren="SELECT rendu FROM rendu WHERE (rendu.id)='$id' LIMIT $offset,$nbmax";
$resren=mysql_query($queryren);
while($tab=mysql_fetch_array($resren)){
$rendu=$tab["rendu"];
echo"<center>RENDU DU SCRIPT:</center><p>";
echo"<center><script src=\"$rendu\" language=\"JavaScript\" type=\"text/javascript\"></script></center>";
echo"<center>LE SCRIPT CORRESPONDANT A CE RENDU EST:</center><p>";
echo"<center><textarea name=\"script\" rows=5 cols=40 >$script</textarea></center><p>";
echo"<center>----------------------------------------------</center>";
}
}
}
}
}
if($offset>0 ){
echo"<center><a href=\"sanip.php?choix=$choix&offset=".($offset-$nbmax)."&nbmax=$nbmax\">PRECEDENT </a>";
}
if(($offset + $nbmax)<=$nbidx){
echo"<a href=\"sanip.php?choix=$choix&offset=".($offset+$nbmax)."&nbmax=$nbmax\">SUIVANT</a></center>";
}
echo"<hr width=80% align=\"middle\" />
<center><strong><a href='anip.php'>RETOUR A LA PAGE D'ACCEUIL</a></strong></center>";
}
include("foot.inc.php");
?>
Le problemes c ke o 2eme passage par pasage a l'url le script arrete d'etre executé a partir de la ou g mis le pointillé car le while n'est pas executé et pourtant il n'affiche aucune errezur!!!
HELP ME PLZ