Bonjour messieurs dames,
Message d'erreur : Parse error: parse error, unexpected T_ELSE in D:\INTRANET\crsf45\otil\Info\romain\panneau-administration_reservation.php on line 339 la ligne 339 se situant en gras
Pourtant tout me semble clean j'ai regarder les acccolades tout est en ordre si qqun à une idée, je met pas la page php en entier seulement le bout qui pose probleme
Code :
- [...]
- $sql6 = "SELECT `id_objet`
- FROM `reservation`
- WHERE `datedebut_reservation` BETWEEN $ddnew AND $dfnew AND `id_categorie` = $catnew AND `confirmer_reservation` = 'OUI'
- OR `datefin_reservation` BETWEEN $ddnew AND $dfnew AND `id_categorie` = $catnew AND `confirmer_reservation` = 'OUI'
- OR `datefin_reservation` = $ddnew AND `heurefin_reservation` >= $hfnew AND `id_categorie` = $catnew AND `confirmer_reservation` = 'OUI'
- OR `confirmer_reservation` = 'OUI' AND `datedebut_reservation` = $dfnew AND `heuredebut_reservation` <= $hdnew AND `id_categorie` = $catnew
- GROUP BY `id_objet`";
- $res6 = mysql_query($sql6);
- $sql8= "SELECT `id_objet`
- FROM `objet`
- WHERE `id_categorie` = $catnew ";
- while ($val6 = mysql_fetch_array($res6))
- { $idobj = $val6[0];
- $sql8 = $sql8."AND `id_objet` <> $idobj ";
- }
- $res8 = mysql_query($sql8);
- $nomform = "confierobjet";//.$numligne;
- $nombutton = "submit";//.$numligne;
- $res7 = mysql_query($sql8);
- if(mysql_fetch_array($res8)=='False')
- {
- echo "<b><center>Aucun objet de libre</center></b>";
- }
- else
- {
- if($catnew == 1)
- {
- echo "<form name= '$nomform' method='post' action='panneau-administration_reservation.php?action=confier'>";
- echo "<select name='idobjetvalid'>";
- echo "<option value='#'>-->Choisir ".$cat."<--</option>\n";
- $res8 = mysql_query($sql8);
- while ($val8 = mysql_fetch_array($res8))
- {
- $idobj2 = $val8[0];
- $sql9 = "SELECT `lib_objet`
- FROM `objet`
- WHERE `id_objet` = $idobj2";
- $res9 = mysql_query($sql9);
- while ($val9 = mysql_fetch_array($res9))
- { $lib = $val9[0];
- echo "<option value= $idobj2>"; echo ucwords(strtolower($lib)); echo"</option>";}
- }
- }
- echo "<input name='iddemandevalid' type='text' value="; echo $id; echo " size='7' maxlength='7' style='display: none'>";
- echo "<input type='submit' name = '$nombutton' value='OK'></form>";
- echo "</select>";
- }
- else
- {
- $sqlmat = "select * from categorie-materiel";
- $res = mysql_query($sqlmat);
- while($res2 = mysql_fetch_array($res))
- {
- if(strstr($com,$res2["lib-materiel"]))
- {
- echo "<form name= '$nomform' method='post' action='panneau-administration_reservation.php?action=confier'>";
- echo "<select name='idobjetvalid'>";
- echo "<option value='#'>-->Choisir ".$cat."<--</option>\n";
- $idobjet = $res2["id-materiel"];
- $sqlobj = "select id_objet, lib_obj from objet where `id_materiel` = $idobjet";
- $resobj = mysql_query($sqlobj);
- while ($resobj2 = mysql_fetch_array($resobj))
- {
- $idobj = $resobj2["id_objet"];
- $libobj = $resobj2["lib_objet"];
- echo "<option value= $idobj>"; echo ucwords(strtolower($libobj)); echo"</option>";}
- }
- echo "<input name='iddemandevalid' type='text' value="; echo $idobj; echo " size='7' maxlength='7' style='display: none'>";
- echo "<input type='submit' name = '$nombutton' value='OK'></form>";
- echo "</select>";
- }
- }
- }
- echo "</TD>";
- echo "</TR>";
- }
- ?></TABLE>
- [...]
|
Sachant que sans le ELSE ça marche ...
Merci d'avance
Message édité par kashir le 28-02-2008 à 18:01:22
---------------
Galerie HFR | ksh.be mon site ouaibe | Galerie Flickr