$id = $_GET['id'];
$db_host = "localhost";
$db_user = "catwalk";
$db_pass = "buffalo8";
$db_db = "catwalkdb";
$connID = @mysql_pconnect($db_host, $db_user, $db_pass) or die("Keine Verbindung!");
@mysql_select_db($db_db, $connID) or die($errorMsg[2]);
$sqlQuery = "SELECT * FROM party_pics WHERE nameid = '$id'";
$result = @mysql_query($sqlQuery, $connID) or die($errorMsg[3]);
$num_rows = mysql_num_rows($result);
for($i = 0; $i < $num_rows; $i++) {
$data = mysql_fetch_array($result);
$bild[$i] = $data['bildname'];
}
?>
|
Catwalk American Tabledance |
|
|
|
Bilder Gallerie
for($i = 0; $i < $num_rows; $i++) {
$image = "bilder_party/".$bild[$i];
$size = getimagesize("$image");
$height = $size[1];
$width = $size[0];
if ($width > 200) {
$width = 200;
$percent = ($size[0] / $width);
$height = ($size[1] / $percent);
} if ($height > 250) {
$height = 250;
$percent = ($size[1] / $height);
$width = ($size[0] / $percent);
} ?>
|
$i = $i + 1;
if($bild[$i] <> "") {
$image = "bilder_party/".$bild[$i];
$size = getimagesize("$image");
$height = $size[1];
$width = $size[0];
if ($width > 200) {
$width = 200;
$percent = ($size[0] / $width);
$height = ($size[1] / $percent);
} if ($height > 250) {
$height = 250;
$percent = ($size[1] / $height);
$width = ($size[0] / $percent);
}
?>
|
} ?>
|
if($bild[$i] <> "") { ?>Bild Nr. echo $i; } ?>
|
} ?>
|
www.Catwalkbb.de |
|
|