Akust0m Posted June 6, 2007 Share Posted June 6, 2007 What exactly cause a page to loop and not load properly? Quote Link to comment Share on other sites More sharing options...
Akust0m Posted June 6, 2007 Author Share Posted June 6, 2007 Re: Causes of Looping? What causes it to have an endless redirection though? Quote Link to comment Share on other sites More sharing options...
Akust0m Posted June 6, 2007 Author Share Posted June 6, 2007 Re: Causes of Looping? Is there anything in the following bit of code that may cause it to redirect improperly like this? $page=$_GET['page']; function gamedrop($connection,$ddname="searchfor",$selected=-1) { $ret="<select name='searchfor' type='dropdown'>"; $q=mysql_query("SELECT * FROM flash ORDER BY game ASC",$connection); if($selected == -1) { $first=0; } else { $first=1; } while($r=mysql_fetch_array($q)) { $ret.="\n<option value='{$r['game']}'"; if ($selected == $r['game'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['game']}</option>"; } $ret.="\n</select>"; return $ret; } Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted June 6, 2007 Share Posted June 6, 2007 Re: Causes of Looping? nope Quote Link to comment Share on other sites More sharing options...
stryker Posted June 7, 2007 Share Posted June 7, 2007 Re: Causes of Looping? take $connection and change it too $c Quote Link to comment Share on other sites More sharing options...
stryker Posted June 9, 2007 Share Posted June 9, 2007 Re: Causes of Looping? it'll get rid of one error Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.