habibjutt
12/24/2015 - 11:20 AM

PHP Select Query To Fetch Data From Database mySQL.php

<?php
$query = "SELECT * FROM categories";
$select_all_categories_query = mysqli_query($connection, $query);
while($row = mysqli_fetch_assoc($select_all_categories_query)) {
  $cat_title = $row['cat_title'];
  echo $cat_title . "</br>";
}
?>