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
| <?php
// connection à la base
mysql_connect('localhost','root','') or die("ERROR DATABASE CONNECTION");
mysql_select_db('db245975082') or die("DATA SELECTION ERRROR");
$query="select * from sanctions where num='".$_REQUEST['id']."'";
$resultat=mysql_query($query);
$numero=$idn;
// fin de connection à la base
require('fpdf.php');
$pdf=new FPDF('P','cm','A4');
ob_start();
$pdf->SetFont('arial','B',8);
$pdf->AddPage();
$pdf->SetFillColor(255,255,255);
$pdf->SetTextColor(0,0,0);
header ('Content-type: text/html; charset=utf-8');
$fond=0;
//début du code affiche des parents
$query3="select * from encours where 'Elève No Etab'='$numero'";
$resultat3=mysql_query($query3);
while($row=mysql_fetch_array($resultat3))
{
$pdf->SetFont('arial','B',8);
$pdf->SetXY(1,24);
$pdf->write(1,$row['Nom']);
} |
Partager