The print lines above are fake but you get the idea. The problem is the first page gets 10 headlines and the second page gets 40, but the 40 includes the first 10. I'd like to grab 10 headlines then the NEXT 40. Thanks.$filebase = "news"; $num_records = 10; $SQL = "SELECT * FROM $content_table WHERE contenttype = 'video' O +RDER BY dateadded DESC, ID DESC"; for ($n=1; $n<=$num_records; $n++) { print outfile1 " latest headlines"; } $filebase = "morenews"; $num_records = 40; for ($n=1; $n<=$num_records; $n++) { print outfile2 "latest headlines"; }
In reply to Looping and counting by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |