Akust0m Posted June 6, 2007 Posted June 6, 2007 What exactly cause a page to loop and not load properly? Quote
Akust0m Posted June 6, 2007 Author Posted June 6, 2007 Re: Causes of Looping? What causes it to have an endless redirection though? Quote
Akust0m Posted June 6, 2007 Author 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
stryker Posted June 7, 2007 Posted June 7, 2007 Re: Causes of Looping? take $connection and change it too $c Quote
stryker Posted June 9, 2007 Posted June 9, 2007 Re: Causes of Looping? it'll get rid of one error Quote
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.