ceci est le script original :
<?php
// on se connecte à MySQL
$db = mysql_connect('localhost', 'ecole', 'xxxx');
// on sélectionne la base
mysql_select_db('ecole',$db);
$numeroPage = isset($_GET['numeroPage']) ? $_GET['numeroPage'] : 0;
$numeroPagePrecedent = $numeroPage - 1;
$numeroPageSuivant = $numeroPage + 1;
// numero de la page à afficher, commencer à 0
$nbElementParPage = 5; // nombre d'éléments par page
$indexAffiche = $numeroPage * $nbElementParPage; // index à partir du quel on va afficher les éléments.
//Donc en fonction du numero de la page, tu obtiendras 0*10 = 0; 1*10=10; 2*10=20 etc.
// on crée la requête SQL
$sql = "SELECT ID,nom,lieu,adresse,metro,tel,mail,site,info FROM ecoles_tbl ORDER BY gpe ASC LIMIT $indexAffiche , $nbElementParPage";
// on envoie la requête
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
// on fait une boucle qui va faire un tour pour chaque enregistrement
while($data = mysql_fetch_assoc($req))
{
// on affiche les informations de l'enregistrement en cours
echo' <table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<TD width="21"><IMG height=50 alt=""
src="../logos/tlc.gif"
width=20 border=0 name=tlc></TD>
<TD width="678"
background="../logos/tm.gif" colspan="2"><IMG
height=1 alt=""
src="../logos/spacer.gif"
width=1 border=0 name=tm></TD>
<TD width="21"><IMG height=50 alt=""
src="../logos/trc.gif"
width=20 border=0 name=trc></TD>
</tr>
<tr>
<TD
background="../logos/left.gif" rowspan="3" width="21"><IMG
height=1 alt=""
src="../logos/spacer.gif"
width=1 border=0 name=left></TD>
<TD vAlign=middle bgColor=#000000 align="center" width="100%">
<font color="#FF7E00"><b>'.$data['nom'].'</b></font>
<hr>
</TD>
<TD vAlign=middle bgColor=#000000 align="center">
<img src="./upload/logo_cours_'.$data['ID'].'" width="111" height="46" border="0">
</TD>
mais où dois-je intégrer ces lignes ci dessous ? :
$dossier_img = './upload/';
echo '<img src="'.$dossier_img;
echo ( file_exists($dossier_img.'logo_cours_'.$data['ID']) ) ? 'logo_cours_'.$data['ID'] : 'no_logo.gif' ;
echo ' width="111" height="46" border="0"/>';
merci de m'éclairer
