<?php $katalog = $_GET['katalog']; $katalog = "_ZGK"; { $i=0; { if ($file != "." && $file != "..") { $fName = $file; $file = $katalog.'/'.$file; $tablica[$i][0] = $fName; $tablica[$i][1] = $file; $i++; } } for ( $a=0 ; $a<count($tablica) ; $a++ ) { $fName = $tablica[$a][0]; $file = $tablica[$a][1]; // echo( $file . "<br>" ); print "<img align='absmiddle' src='136.jpg'width='32' height='32'> <a href='index.php?katalog=".$file."'>".$fName."</a><br>"; } if ( $up != "" ) { print "<img align='absmiddle' src='wrooc.jpg'width='32' height='32'><a href='index.php?katalog=$up'> Cofnij katalog</a><br>"; } } if($katalogrok) { echo ("<script>alert('Dodano nowy rok prawidłowo');window.self.location.href='index.php';</script>"); } ?> <form action="index.php" method="post"> Utwurz nowy rok:<br /> <input type="tinyint" name="katalogrok" /><br /> <input type="submit" value="utwórz" /> </form>
Witam!! potrzebuje pomocy aby zrobić takie cos gdy dodaje nazwe nowego folderu i wpisana nazwa juz istnieje niech wyskoczy komunikat taka nazwa juz istnieje.