prepare($sql); if($stmt->execute()) { $row = $stmt->get_result()->fetch_assoc(); if(!is_array($row)) { $_SESSION['setup'] = true; header('Location: setup/index.php'); } } ?>