Jump to content

Here is your chance to make me look a bit silly!!


Zugzwangle

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

Archived

This topic is now archived and is closed to further replies.

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