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:
|
<html>
<head>
<title>.online Bildarchiv --- reload 1.0</title>
<link rel=stylesheet href=style.css>
</head>
<body>
<table width=100% height=100%><tr><td><?php include('Rand1.php');?><center>
<table width=810><tr><td height=205><center><?php include('Header.php');?></center></td></tr><tr><td><center><?php include('Menue.php');?>
</center></td></tr><tr><td>
<?php
//Verbindung zu Datenbank aufbauen
include("../_include/db_connect.inc.php");
$link = connect_to_stef_db();
$id= $_GET["id"];
$abfrage = "SELECT * FROM onBi WHERE id='$id'";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
$path = "http://Hauptverzeichnis/$row->typ/$row->farbe/$row->nummer/";
$dir = opendir($path);
$extensions = array("gif", "jpeg", "jpg", "png", "JPG", "GIF", "JPEG", "PNG");
while(($file = readdir($dir)) !== false)
{
if(in_array(pathinfo($file, PATHINFO_EXTENSION), $extensions))
{
echo "<img border="0" src="$path$file"><br><br>";
}
}
}
?>
</td></tr></table></center><?php include('Rand2.php');?></td></tr></table>
</body>
</html> |