include_once('menu_principal.php'); ?>
if(isset($_GET['color']))
{
$_GET['n'] = 1;
$_GET['d'] = 1;
$_GET['id'] = 1;
}
elseif(isset($_GET['p']))
{
$_GET['n'] = 1;
$_GET['d'] = 0;
$_GET['id'] = 2;
$obtenemos_nombre_categoria = $mysqli->prepare("Select nombre as t_nom_cat from personalidad where id_personalidad = ?");
$obtenemos_nombre_categoria->bind_param("i",$_GET['p']);
$obtenemos_nombre_categoria->execute();
$obtenemos_nombre_categoria->bind_result($t_nom_cat);
$obtenemos_nombre_categoria->store_result();
$obtenemos_nombre_categoria->fetch();
}
elseif (isset($_GET['d']) && $_GET['d'] ==0)
{
$obtenemos_nombre_categoria = $mysqli->prepare("Select nombre_categoria as t_nom_cat from categoria where id_categoria = ? and estado = 1");
$obtenemos_nombre_categoria->bind_param("i",$_GET['id']);
$obtenemos_nombre_categoria->execute();
$obtenemos_nombre_categoria->bind_result($t_nom_cat);
$obtenemos_nombre_categoria->store_result();
$obtenemos_nombre_categoria->fetch();
}
elseif(isset($_GET['n']))
{
if ($_GET['n'] == 1)
{
$obtenemos_nombre_categoria = $mysqli->prepare("Select nombre_categoria as t_nom_cat from categoria where id_categoria = ? and estado = 1");
$obtenemos_nombre_categoria->bind_param("i",$_GET['id']);
$obtenemos_nombre_categoria->execute();
$obtenemos_nombre_categoria->bind_result($t_nom_cat);
$obtenemos_nombre_categoria->store_result();
$obtenemos_nombre_categoria->fetch();
}
elseif ($_GET['n'] == 2)
{
$obtenemos_nombre_categoria = $mysqli->prepare("Select nombre_categoria_2 as t_nom_cat from categoria_2 where id_categoria_2 = ? and estado = 1");
$obtenemos_nombre_categoria->bind_param("i",$_GET['id']);
$obtenemos_nombre_categoria->execute();
$obtenemos_nombre_categoria->bind_result($t_nom_cat);
$obtenemos_nombre_categoria->store_result();
$obtenemos_nombre_categoria->fetch();
}
elseif ($_GET['n'] == 3)
{
$obtenemos_nombre_categoria = $mysqli->prepare("Select nombre_categoria_3 as t_nom_cat from categoria_3 where id_categoria_3 = ? and estado = 1");
$obtenemos_nombre_categoria->bind_param("i",$_GET['id']);
$obtenemos_nombre_categoria->execute();
$obtenemos_nombre_categoria->bind_result($t_nom_cat);
$obtenemos_nombre_categoria->store_result();
$obtenemos_nombre_categoria->fetch();
}
}
?>
if (isset($_GET['sticker']))
{
if($_GET['sticker']=='nuevo')
{
echo 'RECIEN LLEGADOS';
}
elseif($_GET['sticker']=='oferta')
{
echo 'NUESTRAS OFERTAS';
}
else
{
echo 'DESCUBRE';
}
}
elseif (isset($_GET['brand']))
{
if($_GET['brand']=='1')
{
echo 'MARCA MITSUBA';
}
if($_GET['brand']=='2')
{
echo 'MARCA CLICGEAR';
}
if($_GET['brand']=='3')
{
echo 'MARCA FJALL RAVEN';
}
if($_GET['brand']=='4')
{
echo 'MARCA HYDRO FLASK';
}
}
else
{
if (isset($_GET['color']))
{
echo 'color '.$_GET['color'];
}
elseif (isset($_GET['talla']))
{
echo 'talla '.$_GET['talla'];
}
else
{
if (isset($_GET['p']))
{
echo 'ME SIENTO ';
}
}
echo $t_nom_cat;
}
?>
Retornar a página anterior
include_once('mkg_oferta_rapida_footer.php'); ?>
include_once('footer_site2.php'); ?>