<style type="text/css"> body { background-color: black; } </style> <?php require_once 'managers/productoManager.php'; require_once 'managers/imagen_manager.php'; require_once 'managers/talla_manager.php'; require_once 'managers/color_manager.php'; //--------------------------------------PRODUCTO -------------------------------------> // Consulta para producto $producto = productoManager::location(); $talla_producto = Talla_manager::findAll_talla_producto(); $color_producto = ColorManager::findAll_color_producto(); $imagen = ImagenManager::findAllImage(); foreach ($producto as $productos) { $cantidad = $productos->id; } if ($cantidad < 10) { $selectID = $_POST['selectID']; $selectID = substr($selectID, 0, 1); } elseif ($cantidad < 100) { $selectID = $_POST['selectID']; $selectID = substr($selectID, 0, 2); $selectID -= " "; } elseif ($cantidad < 1000) { $selectID = $_POST['selectID']; $selectID = substr($selectID, 0, 3); $selectID -= " ";