mysql_select_db($database_conn_sgd, $conn_sgd);
$query_men_cortinas = "SELECT producto.producto, producto.id_producto FROM producto WHERE producto.cat = 1 ORDER BY producto.producto ASC";
$men_cortinas = mysql_query($query_men_cortinas, $conn_sgd) or die(mysql_error());
$query_men_portones = "SELECT producto.producto, producto.id_producto FROM producto WHERE producto.cat = 2 ORDER BY producto.producto ASC";
$men_portones = mysql_query($query_men_portones, $conn_sgd) or die(mysql_error());
$query_men_todos = "SELECT producto.producto, producto.id_producto FROM producto ORDER BY producto.cat ASC, producto.producto ASC";
$men_todos = mysql_query($query_men_todos, $conn_sgd) or die(mysql_error());
?>
}?>
//This does the same as above, only checking if we are on the last page, and then generating the Next and Last links
if ($page_not +4 >= $no_of_paginations) {
$last_search = $no_of_paginations;
} else {
$last_search = $page_not + 4;
}
$i_inicial = $last_search - 4;
if ($i_inicial <= 0) {
$i_inicial = 1;
}
for ($i = $i_inicial; $i <= $last_search; $i ++) { ?>
}?>
//This does the same as above, only checking if we are on the last page, and then generating the Next and Last links
if ($page_not +4 >= $no_of_paginations) {
$last_search = $no_of_paginations;
} else {
$last_search = $page_not + 4;
}
$i_inicial = $last_search - 4;
if ($i_inicial <= 0) {
$i_inicial = 1;
}
for ($i = $i_inicial; $i <= $last_search; $i ++) { ?>