J'ai un tableau en html que j'aimerais rendre dynamique grâce à du php.
J'aimerais que mon tableau reste le même après l'avoir rendu dynamique.

Voici mon code html :
Code HTML : Sélectionner tout - Visualiser dans une fenêtre à part
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title> Exposition de tableau</title>
</head>
 
<body background=""> 
 
<TABLE BORDER="10"CELLPADDING="20"CELLSPACING="6">
  <CAPTION><b><big><big><big><big><big> Exposition d'oeuvres <big><big><big><big><big><b></CAPTION>
 
  <hr>
 
  <TR>
 
 
	<TH> Titre des oeuvres</TH>
	<TH> Images en miniature</TH>
	<TH> Description des images </TH>
 
  </TR>
  <hr>
  <TR>
	<TH> Che guevara</TH>
	<TD> <a href="images/che.jpg"><img src="images/che.jpg" alt="che"></a> </TD>
	<TD> Photo montage Cheguevara "otro mundo es posible" </TD>
 </TR>
  <TR>
	<TH> Photo de groupe airsoft </TH>
	<TD> <a href="images/pict1617.jpg"><img src="images/pict1617.jpg"width="400" height="300" alt="pict1617"></a></TD>
	<TD> Photo de groupe du week-end airsoft à le chemin 2006 </TD>
 
  </TR>
  <TR>
	<TH> foule champs élysée </TH>
	<TD> <a href="images/k 020.jpg"><img src="images/k 020.jpg"width="400" height="300" alt="k 020"> </TD>
	<TD> Champs élysée a la suite du match France-Brésil coupe du monde 2006 </TD>
 
  </TR>
 
  </TR>
	<TR>
	<TH> ventilo pc </TH>
	<TD> <a href="images/photo 002.jpg"><img src="images/photo 002.jpg"width="400" height="300" alt="photo 002"></a> </TD>
	<TD> Photo de pc de démonstration a l'eswc à Bercy en 2006 </TD>
 
 
  </TR>
 
  </TR>
	<TR>
	<TH> 0 </TH>
	<TD> 1 </TD>
	<TD> 2 </TD>
 
  </TR>
  </TR>
</TABLE> 
 
 
 
</body>
 
</html>
<br><br>
<hr><hr><hr>


J'aimerais transformé ce code en php peut-être en "l'incorporant" à ce code php que j'ai trouvé sur un forum.

Voici le code php:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<HTML>
<body>
<title>Vente de tableau</title>
 
<?
$dir="images";
$dossier=opendir($dir);
while($fichier=readdir($dossier))
	{
$berk=array('.', '..');
if(!in_array($fichier,$berk))
{
$lien=$dir.'/'.$fichier;
print '<div style="float:left;height:75px;">';
if(file_exists($lien))
{
print '<img src="'.$lien.'" alt=""  style="padding: 10 10 10 10;" width="400" height="300" /><br>';
print '<a href="'.$lien.'">'.substr($fichier,0,-4).'</a><br>';
}
print '</div>';
}
}
?>
 
 
</body>
</HTML>
Est ce que mon idée est réalisable et si oui par ou commencer.
Si je n'ai pas été clair dans la description de mon probleme n'hésitez pas à me poser des questions.

Merci de votre attention.