Je me suis dis que peut être cela pouvait se partager.
C'est simple, mais j'aime bien le systeme d'un boutons On/Off.
Donc, un table avec un id, un chapo, un texte, et le nom d'une photo.
y a un exemple sur : http://scan-line.net/faq.php?chapo=0
<?
$sql = "SELECT * FROM nom de la table";
$req = mysql_query($sql) or die(mysql_error());
?>
<table width="420" border="0" valign="center" cellspacing="0" cellpadding="0">
<tr>
<h3>Titre de la page, par exemple</h3>
</tr>
<?
while ( $data = mysql_fetch_array($req) )
{
?>
<tr>
<td width="40" align="left" valign="top">
<p>
<?
if ( $_GET['chapo'] == '1' AND $_GET['lect'] == $data['id'])
{
?>
<a href='faq.php?id=<?=$data['id']?>&chapo=0'>
<img src='img/top/plus_on.gif' border='0'>
</a>
</td>
<?
}
else
{
?>
<a href='faq.php?id=<?=$data['id']?>&chapo=1&lect=<?=$data['id']?>'>
<img src='img/top/plus.gif' border='0'>
</a>
</td>
<?
}
?>
<td width="520" align="left" valign="top">
<font color="#000000" face="Verdana" size="2">
<?=$data['titre']?>
</font>
<? if ( $_GET['chapo'] == '1' AND $_GET['lect'] == $data['id'])
{
?>
<hr>
<p><?=$data['text_En']?></p>
<?
if ($data['img_2'] == '')
{
}
else
{
?>
<p><?=$data['text_2_En']?></p>
<img src='img/screen_copies/<?=$data['img_2']?>' width="350" border='1'>
<?
}
?>
<hr>
<? $_GET['chapo'] = '0' ;
}
?>
</td>
<?
}
?>
</tr>
</table>
mais comme je le disais, je ne suis pas developpeur, j'essai juste de comprendre "comment ca marche", un peu...y doit exister d'autres facons de faire un system on/off sur une liste complete, alors si vous en avez, "you are welcome".