if($_GET['page']) // Is page defined?
{
$page = $_GET['page']; // Set to the page defined
}else{
$page = 1; // Set to default page 1
}
$max = 1; // Set maximum to 10
$cur = (($page * $max) - $max); // Work out what results to show
$getdata = mysql_query("SELECT collectieproduct_id, collectieproduct_title, content, product_afb, merk_id FROM collectie_product WHERE merk_id = ".$_GET["merkid"]." ORDER BY collectieproduct_title ASC LIMIT $cur, $max") or die(mysql_error()); // select the results
while (list($collectieproduct_id, $collectieproduct_title, $content, $product_afb, $merk_id) = mysql_fetch_array($getdata)) // get the data
{
?>
|
 |