Références
$reqReferenceAvant=mysqli_query($link,"select * from reference_klop where pub='o' and mise_avant='o' order by ordre"); while($referenceAvant=mysqli_fetch_array($reqReferenceAvant)) { if($referenceAvant["photo_pte"]!='') $lienPhoto=$referenceAvant["photo_pte"]; else $lienPhoto='images/global/logo-ref.jpg'; $reqExpertiseLiee=mysqli_query($link,"select titre from page_klop where id_page=".$referenceAvant["id_page"]); $expertiseLiee=mysqli_fetch_array($reqExpertiseLiee);?>
echo stripslashes($referenceAvant["client"]); ?>
echo stripslashes($expertiseLiee["titre"]); ?>
echo stripslashes($referenceAvant["accroche"]); ?>
Et pleins d’autres références :
$i=0; $listeRef=''; $reqRefRand=mysqli_query($link,"select client from reference_klop where pub='o' and mise_avant='n' order by rand() limit 20"); while($refRand=mysqli_fetch_array($reqRefRand)) { if($i==0) $listeRef.=stripslashes($refRand["client"]); else $listeRef.=' - '.stripslashes($refRand["client"]); $i++; } ?>echo $listeRef; ?> ETC...
echo stripslashes($textPage["texte"]); ?>