Bonjour a tous,
J'ai un problème avec la fonction mysql_fetch_object je pense. La fonction marche bien , mais elle ne me retourne qu'une seule valeur alors qu'il faudrait qu'elle m'en retourne plusieurs. Mais je ne sais pas comment faire, j'ai essayer avec une boucle for, sans resultat.
if(!empty($_REQUEST["foo"]))
{
$rqListBillet = "select * .....................................................";
$rsListBillet = mysql_query($rqListBillet);
$xml = "";
if (mysql_num_rows($rsListBillet) > 0)
{
while ($billet = mysql_fetch_object($rsListBillet))
{
$date_validation=$billet->date_validation;
$date_validation= date_antofr($date_validation);
if ($Nombres_jours >=0)
{
$rqListBillet = "select * from mission where date!='00-00-0000' and date='".$_REQUEST['foo']."' and idprofesseur=$idprof";
$rsListBillet = mysql_query($rqListBillet);
echo "<table width='100%' border='1' cellspacing='0' cellpadding='0'>
<tr align='center'>
<td width =25%>Mission</td>
</tr>";
$idmission=$billet->idmission;
$date_depart= date_antofr($date_depart);
echo "<tr align='center'>
<td width =25%>Mission ".$idmission."</td>
</tr>";
} } }