Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Coding Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 324419" data-attributes="member: 36373"><p>Usually for things you are just trying to display, while for loops are good, for this situation While Loop would work better. And if you want to control your loop to only display a certain number you can always just add "Do .. While .." otherwise all you need is "While.."</p><p></p><p>So do thing along the lines of this:</p><p>do{</p><p>$i++;</p><p>echo "<font size='2'><a href='values.php?page=".$i."'>".$i.", </a> </font>";";</p><p>}</p><p>while($i <10);</p></blockquote><p></p>
[QUOTE="JayC, post: 324419, member: 36373"] Usually for things you are just trying to display, while for loops are good, for this situation While Loop would work better. And if you want to control your loop to only display a certain number you can always just add "Do .. While .." otherwise all you need is "While.." So do thing along the lines of this: do{ $i++; echo "<font size='2'><a href='values.php?page=".$i."'>".$i.", </a> </font>";"; } while($i <10); [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Coding Help
Top