include("includes/header.php");
admin_counter("marcas",sanitize($_GET['id']),$l,'listprods.php');
include("includes/slider.php");
$select_marca=mysqli_query($connection,"SELECT * from marcas where id='".sanitize($_GET['id'])."'");
$data_marca = mysqli_fetch_object($select_marca);
$select_productos=mysqli_query($connection,"SELECT *, (select nombre_archivo from imagenes where imagenes.id_content=productos.id and imagenes.categoria='productos' and home=1 order by listorder asc limit 1) img from productos where productos.marca='".sanitize($_GET['id'])."' order by orden asc");
if (mysqli_num_rows($select_productos) >0) { $num= 0; ?>