"while" loop crashed my server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

"while" loop crashed my server

Post by Citizen »

Can anyone see anything wrong with this?

Code: Select all

<?php
			$gnumcheck = 20;
			$x = 1;
			while($gamenum > $gnumcheck){
			$gnumcheck += 1;
			$x += 1;
			echo" | <a href='self?begin=$gamecheck'>$x</a>";
			$gnumcheck += 19;
			}
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$gamenum isn't modified nor is it even initialized.
Post Reply