I have multiple identical tables in my database (different content, though) and a table that assigns an Id to every table name. I want to display first the most recent table and the user can navigate between them with two buttons: previous and next. The thing is that I don't know why this doesn't work:
$sql = mysql_query("SELECT MAX('id') AS 'nr' FROM 'listatabele'");
$row = mysql_fetch_array($sql);
$idTabel = $row['nr'];
The error I get is that resource is expected, boolean given.