Re: another try...
| From: | heinisch at creaction dot de | Date: | Mon, 08 Apr 2002 23:38:24 +0000 |
| Subject: | Re: another try... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92147@lists.php.net to get a copy of this message | ||
At 08.04.2002 17:15, you wrote:
Ok I know you guys are tired of hearing from me on here but I tried to do it a different way and now I am getting a parse error on line 6... here is the code, <?php $dir_name = "/path/to/images/directory/"; $dir = opendir($dir_name); while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name !=".."))there should be at least parenthesis so if you place { } it should work, but does nothing Oliver
} // this is line 6, can I not put a if statement here?
$file_list = "<p><FORM METHOD=\"post\" ACTION=\"index_done.php3\"
NAME=\"$file_name\"><SELECT NAME=\"files\">
<OPTION VALUE=\"$file_name\" NAME=\"$file_name\">$file_name</OPTION>
</SELECT><br><br><INPUT TYPE=\"submit\" NAME=\"submit\"
VALUE=\"select\"></FORM></p>";
closedir($dir);
?>
Thanks in advance,
Jas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php