When I select all from my database, it only returns one row. I have changed it to select "column name" from database where "blank" = 1
and set multiple rows to have "blank" = 1 and it still only returns one row.
Here is my code:
<?php
$link = mysqli_connect("host", "database", "password", "database");
if (mysqli_connect_error()) {
die("There was an error, Please try again");
}
$query = "SELECT * FROM `news`";
$result = mysqli_query($link, $query);
$imageTest = mysqli_fetch_array($result);
?>
When I test this and print out the array with
<?php print_r($imageTest); ?>
It only comes back with one row (there are currently 3 test rows in the database)
I know Im probably missing something super small. Ive never really worked a project that I needed to select more than one row of items in a column.
I have another database being used in the same project that Im not having any issues with in its intended function but when I went to that one and tested the same thing, it returned the same results.