Good Night, I have a database and in it two columns, one of Links and the other of names, these links are for pages with more information about the movie, and the column name contains the names of the movies, well, I want my site to list the movies by the names and these names are links to the pages, I've tried everything that my knowledge allows, which is very little, I hope they help me.
$query = "SELECT paginas, Nome FROM links_paginas_filmes";
$result = mysqli_query($link, $query);
while($row = mysqli_fetch_row($result)) {
foreach($row as $field => $value) {
if($field != 'paginas') continue;
echo ('<a href="Black-Mirror.html">' . $value . '</a>');
}
}