le 06/11/2004 à 03:02
INCLUDE dans une variable
bon, ben j abandonne lol
toujours pas réussi a faire ce $ù$ù$^de include dans ma variable //
toujours pas réussi a faire ce $ù$ù$^de include dans ma variable //
<table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" height="45" background="../theme/fu2_defaut/images/c_HG.jpg"> </td>
<td width="200" background="../theme/fu2_defaut/images/c_H.jpg" align="center">$titre_bloc</td>
<td width="35" background="../theme/fu2_defaut/images/c_HD.jpg"> </td>
</tr>
<tr>
<td background="../theme/fu2_defaut/images/c_G.jpg"> </td>
<td background="../theme/fu2_defaut/images/centre.jpg">$contenu_bloc</td>
<td background="../theme/fu2_defaut/images/c_D.jpg"> </td>
</tr>
<tr>
<td height="45" background="../theme/fu2_defaut/images/c_BG.jpg"> </td>
<td background="../theme/fu2_defaut/images/c_B.jpg"> </td>
<td background="../theme/fu2_defaut/images/c_BD.jpg"> </td>
</tr>
</table>
while ($data = mysql_fetch_array($req)) {
$titre_bloc = $data['titre'];
$contenu_bloc = $data['contenu'];
$tmpl_file = "bloc.htm";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}