Jump to content

Recommended Posts

What is the error in this code? It's such a simple bit of code, but doesnt work...  So make me look stupid by pointing out my coding error!!! Good luck!!


		$dbName = $_GET['dbIdent'];

		$dirArr = scandir(("uploadedPGN/gameDatabases/"), 0);


		foreach ($dirArr as $key => $value) 
		{
			if (is_null($value) || $value=="." || $value==".." || $value=="...") 
			{
				unset($dirArr[$key]);
			}

		}
		///// works all the way to here  \\\\\

		echo '<form method="POST"><select name="process"><OPTION>Select Database: </OPTION>';

		foreach($dirArr as $val2)
		{

			echo '<OPTION value="processPGN_NONANCL_DB.php?dbIdent='.$val2.'">'.$val2.'</OPTION>';

		} 
		echo '</select><input type="submit"></form>';

		////// so why is the little bit of code above causing me such a nightmare? grrr \\\\\

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.