I have the following problem, I created a form in which the value that the user writes has to go to the top of the table, leaving the oldest ones down, or have my SELECT select only the last 10 records of the Can anyone help me?
UPDATE !!!
My code looks like this:
$result = "SELECT id, filmes FROM dados_rec ORDER by filmes DESC LIMIT 10";
$query = mysqli_query($link, $result);
$row = mysqli_fetch_row($result);
echo $row[1];
echo $row[2];
echo $row[3];
It prints only the first, which in the case is the name of a movie, but it ignores the other "echos"