I'm doing a program that extracts information from a database and I want it to be incremented by a counter that acts as an id in a SQL query when it is given in the "next" AND "previous" buttons.
$acum = 1;
$consulta = "SELECT * FROM noticia where Id = '$acum'";