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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
| <?php
ob_start();
session_start();
define('FPDF_FONTPATH','font/');
include("connection.inc.php");
require('invoice.php');
//Selectionne les produits à mettre dans le pdf
$result=mysql_query("select adress_client,adress_chantier,codepostal_client,codepostal_chantier,civilite,civilite_chantier,tel_client,tel_chantier,fax_client,fax_chantier,interlocuteur_client,interlocuteur_chantier,societe,zone,num_cmd,num_chantier,num_serie,num_contrat,contrat,debut_loc,fin_loc,date,interets,options,prix,qte,conduc,fuel_d,fuel_r,prix2,prix3,prix4 from contact ");
$number_of_contact = mysql_numrows($result);
//lier les variables à un tableau
while($row = mysql_fetch_array($result))
{
$adress_client = $row["adress_client"];
$adress_chantier = $row["adress_chantier"];
$codepostal_client
= $row["codepostal_client"];
$codepostal_chantier
= $row["codepostal_chantier"];
$civilite
= $row["civilite"];
$civilite_chantier
= $row["civilite_chantier"];
$tel_client = $row["tel_client"];
$tel_chantier
= $row["tel_chantier"];
$fax_client
= $row["fax_client"];
$fax_chantier
= $row["fax_chantier"];
$interlocuteur_client
= $row["interlocuteur_client"];
$interlocuteur_chantier = $row["interlocuteur_chantier"];
$societe = $row["societe"];
$zone = $row["zone"];
$num_cmd = $row["num_cmd"];
$num_chantier = $row["num_chantier"];
$num_serie = $row["num_serie"];
$num_contrat = $row["num_contrat"];
$contrat = $row["contrat"];
$debut_loc = $row["debut_loc"];
$fin_loc = $row["fin_loc"];
$date
= $row["date"];
$interets
= $row["interets"];
$options
= $row["options"];
$prix
= $row["prix"];
$qte
= $row["qte"];
$conduc
= $row["conduc"];
$fuel_d
= $row["fuel_d"];
$fuel_r
= $row["fuel_r"];
$prix2
= $row["prix2"];
$prix3
= $row["prix3"];
$prix4
= $row["prix4"];
}
mysql_close(); |
Partager