Dark_Archon Posted January 22, 2008 Share Posted January 22, 2008 <?php for ($i = 1; $i < 50; $i++) { echo("<iframe src=\"http://www.url.com/$i\"></iframe>"); } ?> this is changing the www.url.com/1, and increasing it by one each time till 50. i was wondering how id get it to give me 5-100, skipping the 1-50 altogether. thanks for the help Link to comment https://forums.phpfreaks.com/topic/87288-small-question/ Share on other sites More sharing options...
KrisNz Posted January 22, 2008 Share Posted January 22, 2008 That's not a very nice thing to do, now is it? Link to comment https://forums.phpfreaks.com/topic/87288-small-question/#findComment-446476 Share on other sites More sharing options...
roopurt18 Posted January 22, 2008 Share Posted January 22, 2008 What would be the point of going from 5 to 100 but skipping 1 to 50? Why not just go from 51 to 100? Link to comment https://forums.phpfreaks.com/topic/87288-small-question/#findComment-446477 Share on other sites More sharing options...
Dark_Archon Posted January 22, 2008 Author Share Posted January 22, 2008 thats what i meant. its a typo. i want to have 50 per page pretty much. sorry. so how would i do that? Link to comment https://forums.phpfreaks.com/topic/87288-small-question/#findComment-446483 Share on other sites More sharing options...
Ken2k7 Posted January 22, 2008 Share Posted January 22, 2008 And how are the pages set up? I don't understand what you're asking? ??? So if I'm on page 1, it will show iFrames 1-50 and if I'm on page 2, it'll show iFrames 51-100? Is that what you mean? Link to comment https://forums.phpfreaks.com/topic/87288-small-question/#findComment-446487 Share on other sites More sharing options...
hamza Posted January 24, 2008 Share Posted January 24, 2008 if you just want to skip the pages form 1-50 then place the check in for loop; so you can do easyly what you want . ---------------------------------------------- Link to comment https://forums.phpfreaks.com/topic/87288-small-question/#findComment-447640 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.