<?php
//connect to the database - either include a connection variable file
//or type the following lines:
$connect = mysql_connect("xxxxx", "xxxxx", "xxxxx")
or die ("Hey loser, check your server connection.");
mysql_select_db ("xxxxx_shop");
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="library/fonts.xml" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<table width="785" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="785" height="60" colspan="3"><img src="top.gif" width="785" height="60"></td>
</tr>
<tr>
<td width="785" height="1" colspan="3" bgcolor="#A99964"></td>
</tr>
<tr>
<td width="785" height="23" colspan="3"></td>
</tr>
<tr>
<td width="385" height="472" valign="top" align="right"><img src="brud3_510x510p.jpg" width="385" height="472"></td>
<td width="15" height="472"></td>
<td width="385" height="472" class="indhold" valign="top" align="right">
<table width="385" height="472" border="0" valign="top" align="left" cellspacing="0" cellpadding="0">
<tr valign="bottom" align="left">
<td width="385" height="23" colspan="6"><font class="indholdoverskrift">Kollektion</font></td>
</tr>
<tr valign="bottom" align="left">
<td width="385" height="23" colspan="6"><?php include("produkttyper.php") ?></td>
</tr>
<tr><td width="385" height="426" colspan="6" align="center" valign="top"><?php
$query = "SELECT * FROM products";
$results = mysql_query($query)
or die(mysql_error());
echo "<table width=\"385\"><tr>";
$sumcount = 1;
$sum = 4;
$i="0";
while ($row = mysql_fetch_array($results)) {
extract($row);
echo "<td width=\"95\" height=\"95\" align=\"middle\">";
echo "<a href=\"varerbeskrivelse.php?prodid=" . $products_prodnum . "\">";
echo "<img src=" . $products_thumbnailimageurl . " width=\"87\" height=\"87\" border=\"0\"></a>";
echo "</td>";
if ($sumcount == $sum) {
$sumcount = 0;
echo "</tr><tr>";
}
$sumcount++;
$i++;
}
echo "</tr></table>";
?>
</td>
</tr>
<tr valign="middle" align="center">
<td width="385 height="30" colspan="6" align="center" valign="top">
<table width="385" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="385 height="30" colspan="6" align="center" valign="top">
<?
// sætter side nr.
if (isset($_GET[side])){
$side = $_GET[side];
}
if (!isset($_GET[side])){
$side = 0;
}
// status
$antal = 16; // Antal af posts pr side
$total = $page * $antal;
$antal_p_side = $antal * $page;
// hoved query
$query = "SELECT * FROM products ORDER BY products_prodnum DESC LIMIT $total, $antal";
// henter alle tags
$out = "SELECT products_prodnum FROM products";
$num = mysql_num_rows($results);
$results = mysql_query($query)
or die(mysql_error());
$row = mysql_fetch_array($results);
extract($row);
// side rotering
if ($side > 0) {
echo "<a href=\"kollektion.php?page=" . ($side - 1) . "\"><img src=\"images/leftpil.gif\" border=\"0\"></a>";
} else {
echo " ";
}
if ($num > $antal_p_side) {
echo "<a href=\"kollektion.php?page=" . ($side + 1) . "\"><img src=\"images/rightpil.gif\" border=\"0\"></a>";
} else {
echo "";
}
?>
</td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
<tr>
<td width="785" height="23" colspan="3"><img src="bund.gif" width="785" height="23"></td>
</tr>
<tr>
<td width="785" height="1" colspan="3" bgcolor="#A99964"></td>
</tr>
<tr>
<td width="785" height="20" colspan="3" align="center" class="indhold"><div align="center">copyright © 2006 la-femme all rights
reserved - powered by <font class="undermenu"><a href="
http://www.designunltd.dk" class="undermenu">designunltd.dk</a></font></div></td>
</tr>
</table>
</body>
</html>