1<?php
2 /* Connect to your database */
3 $con = mysqli_query("hostname", "username", "pwd", "database");
4 /* Select Columns from table*/
5 $sql = "SELECT * FROM `TABLE`";
6 /* Query your SQL code to SQLDatabase */
7 $result = mysqli_query($con, $sql);
8 /* Find rows in table*/
9 $check = mysqli_num_rows($result);
10 if($check > 0){
11 while($data= mysqli_fetch_assoc($result)){
12 /* Print all of your data*/
13 echo $data["ColName"];
14 }
15 }
16?>