1$sql = "select * FROM tableName;";
2
3$result = mysqli_query($conn, $sql);
4while ($row = mysqli_fetch_assoc($result)) {
5 echo $row['columnName'];
6}
1$sql="SELECT * my_table"
2
3$result = mysql_query($sql);
4while($row = mysql_fetch_array($result)) {
5 echo $row['fieldname'];
6}