Jump to content

Causes of Looping?


Recommended Posts

Re: Causes of Looping?

Is there anything in the following bit of code that may cause it to redirect improperly like this?


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; }
$ret.="\n<option value='{$r['game']}'";
if ($selected == $r['game'] || $first == 0) { $ret.=" selected='selected'";$first=1; } 
$ret.= ">{$r['game']}</option>";
return $ret;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...