setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $conn->prepare("SELECT * FROM business_verticals"); $stmt->execute(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); if (count($rows) >= 1) { foreach($rows as $row){ echo '
'.$row['bv'].'
'; ?> Not Found any Data

"; } } catch (PDOException $e) { echo "

Error: " . $e->getMessage() . "

"; } ?>