Nombre dans base de donnée, ajouter +1 au nombre
Bonjour à tous,
Je fais un module d'affichage selon l'heure, j'aimerais seulement mettre le nombre + 1, voici mon code, aidez-moi svp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| <?php
$heure=date("G");
$commaff= mysql_query("SELECT * FROM ".T_ANIMATEUR." WHERE heuredebut<='$heure' AND heurefin>='$heure' ORDER BY id");
while ($donnees = mysql_fetch_array($commaff))
{
$jour=date("w");
$jourbd=$donnees['jour'];
$journee = explode(",", $jourbd);
$max=45;
$chaine=$donnees['bio'];
if(strlen($chaine)>=$max)
{
$chaine=substr($chaine,0,$max);
$espace=strrpos($chaine," ");
if($espace)
$chaine=substr($chaine,0,$espace);
$chaine .= ' ...';
}
$numero=$donnees[0];
for($i=0;$i<sizeof($journee);$i++)
{
if($jour==$journee[$i]){
echo'
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="15%" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" ><div class="image"><span ><img src="images/animateur/'.$donnees['photo1'].' " width="100" height="100"></span><img src="images/z2.png" class="z2" ></div></td>
</tr>
</table></td>
<td width="85%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><div align="left"class="encemoment" ><strong>'.$donnees['nomprenom'].'</strong></div>
<em>de '.$donnees['heuredebut'].'h à '.$donnees['heurefin'].'h</em></td>
</tr>
</table></td>
</tr>
</table>';
}
}
}
?> |