I want to make an array from a SQL table, and the page returns "null".
I have tried the following code, which gives me a blank page, I think the problem is in the "while".
$;result = mysqli_query($cnx, "SELECT * FROM matches WHERE pseudo = 'alan'");
while($array = mysqli_fetch_assoc($result));
echo ($array);
I want to echo the data from the database on the page using this method, I want to create an array of the SQL table, to use it in the future.