I haven't given a full length look on your code Tommy-girl,
but my guess is that your sql query does not produce any results at all.
Take extra care on the usage of LIMIT in your sql query.
In your code you initialize $limit with 8:
$limit = 8;
...
$sql= "select * from noemails where status = '1' ORDER BY stamp DESC limit $limit" ;
execute this query manually to see if you get any results at all
use phpMyAdmin or some other sort of database manager
Does this query ever gets more than 8 results for status='1' ???
Notice that "limit 8" means that it will show all the results starting from the 9th one!!
Maybe you wanted to write "limit 0, 8" which shows 8 results starting from the 1st one.
Hope this helps a bit...