0

I'm working on a website that uses a lot of database echoing. But the problem is I have used some code that always worked for me before and this time it isn't working at all.

The Code:

<?php
    $result=mysqli_query($mysqli, "SELECT * FROM action ORDER BY gameid ASC");
    while($row = mysqli_fetch_array($result)){
        echo $row['gamename'];
    }
?>

I am not seing any errors.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Trojan_DC
  • 11
  • 1
  • 9

1 Answers1

-1

try maybe it helps

$result=mysqli_query($mysqli, "SELECT * FROM action ORDER BY gameid ASC");
$row = mysqli_fetch_array($result)
echo $row['gamename'];
Vimal Rai
  • 757
  • 5
  • 6