1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<?php
include('connect.php');
$sql = 'SELECT SUM(totalttc) as montant,factures.n_intervenant,sarl,moncompte.civilite,moncompte.siret,
factures.civilite,factures.nomclient,factures.prenomclient,factures.adresseclient,factures.jour,factures.mois,factures.annee,factures.cpclient,factures.villeclient,idf, heure_i, min_i, tauxhoraire
FROM factures,moncompte WHERE idclient = '.$bdd->quote($_GET['idc']);
$reponse = $bdd->query($sql);
while($donnees=$reponse->fetch())
{
echo '<table><tr>';
echo '<td>'.$donnees['jour'].' /'.$donnees['mois'].' /'.$donnees['annee'].'</td>';
echo '<td>'.$donnees['n_intervenant'].'" - facture n°'.$donnees['idf'].'</td>';
echo '<td>'.$donnees['heure_i'].'</td>';
echo '<td>'.$donnees['tauxhoraire'].' </td>';
echo '</tr></table>';
}
?> |