0
I want to display several data on a page but it appears only one, when instead of appearing the image of each register for example it appears only that of a which is the latest record ever made.
$query = "SELECT * FROM animestb LIMIT 20000";
$con = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($con)) {
$nome = $row['nome'];
$link = $row['link'];
$img = $row['img'];
$id = $row['id'];
}
?>
When mysqli use this error: mysqli_query() expects at least 2 Parameters, 1 Given
– Toniotti
is because it’s not just swapping mysql_for mysqli. use PDO and it’s even better. I’ll give you an example updating the answer
– Rafael Augusto