use $from is bad name choice. because sql use from already.
$sql = mysql_query("SELECT * FROM screenshots order by id asc LIMIT $from, $max_results");
if you use any word liek $select $insert $update then use with it.
example....$from`
again the reson you get one image could be BCAUSE YOU <TR> TAG ARE NOT CLOSE IN THE MIDDEL like i said 3 times already!
try something like this to close your tr tags like you are closing them at start and end ofyou table.
next time if you post you better have them TR tags closed or i will not replay to this post hehe
if (!($i%4))
echo "</tr><tr>";