|
@@ -1,7 +1,7 @@
|
|
|
<?
|
|
<?
|
|
|
include('db.php');
|
|
include('db.php');
|
|
|
|
|
|
|
|
-$statement = $db->prepare("SELECT `nombre` FROM `productos` WHERE `categoria` = ? limit 7");
|
|
|
|
|
|
|
+$statement = $db->prepare("SELECT `nombre` FROM `productos` WHERE `categoria` = ? limit 6");
|
|
|
$cat = 'FACIALES';
|
|
$cat = 'FACIALES';
|
|
|
$statement->bind_param('s', $cat);
|
|
$statement->bind_param('s', $cat);
|
|
|
$statement->execute();
|
|
$statement->execute();
|
|
@@ -78,7 +78,7 @@ $statement->bind_result($nombre);
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<?
|
|
<?
|
|
|
- if (i!=3) {
|
|
|
|
|
|
|
+ if ($i!=3) {
|
|
|
if (!$statement->fetch()) { break; }
|
|
if (!$statement->fetch()) { break; }
|
|
|
}
|
|
}
|
|
|
} //while $i %3 && st-fetch
|
|
} //while $i %3 && st-fetch
|