ob_start(); ob_clean(); session_start(); include 'adminln/dilg/cnt/join.php'; include "global-values.php"; include "global-functions.php"; $type = 'hardware'; $stmt = $conn->prepare("SELECT * FROM `products` WHERE type = ? ORDER BY id ASC"); $stmt->bind_param("s", $type); $stmt->execute(); $select_product_id = $stmt->get_result(); $rows_R = mysqli_fetch_array($select_product_id); if ($rows_R) { foreach ($rows_R as $K1 => $V1) { if (!is_numeric($K1)) { $$K1 = $V1; } } } ?>