Désolé, je suis 1 peu relou avec mes questions!!!!
est ce que c'est faisable?
Voici mon code:
?>
<?function calcul_hours($temps)
{
//combien d'heures ?
$hours = floor($temps / 60);
//combien de minutes ?
$min = floor($temps - ($hours * 60));
if ($min < 10)
$min = "0".$min;
echo $hours."h".$min."m";
}
?>
<?
include("./secu/connection.php");
$stat_temps_pers=mysql_query(" SELECT user.nom, count(fiche_svp.intervenant) FROM user LEFT JOIN fiche_svp on user.id_user=fiche_svp.intervenant where (date_fiche between '$date1' and '$date2') GROUP BY intervenant ORDER BY nom");
$temps = mysql_query("SELECT SUM(tmp_passe) FROM fiche_svp where (date_fiche between '$date1' and '$date2')");
$row=mysql_fetch_array($temps);
echo calcul_hours($row[0]);
?>
<br><br><br><br><br>
<a name="perso"><b><h3><u>statistiques personnelles</u></h3></a>
<table border=2 bgcolor=C1CEF9 bordercolor=48465F>
<td><b><center>Nom</td><td><b><center>Nb de fiche</td><td><b><center>Temps total</td></tr>
<?
while ($row=mysql_fetch_array($stat_temps_pers,$temps))
{
echo "
<td bgcolor=E5E6E9>".$row[0]."</td>
<td bgcolor=E5E6E9>".$row[1]."</td>
<td bgcolor=E5E6E9><center>".$row[2]."</td></tr>\n";
}
echo "
</table>";
?>
**************************************
j'aimerai faire l'appel de ma fonction "calcul_hours" dans le dernier tableau dans la case"$row[2] mais lorsque j'essaie cela apparait au dessus du tableau et pas dedans...
si vous avez 1 idée, n'hésitez pas....
Merci d'avance
Animal