Witam
mam taki skrypt:
<style type="text/css">
<!--
.style1 {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
<br /><br />
<?
$kto= "galeria";
{
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..")
{
if($handle2 = opendir($kto.'/'.$file)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..")
{
$f = fopen($kto.'/'.$file.'/nazwa.txt', 'r'); echo "<table width="90%" border="0" align="center
" cellpadding="2" cellspacing="1" bordercolor="#6284b7">"; echo" <tr> <td width=10%" align
="center" bgcolor
="#6284b7"><img src
="grafika/p.gif" width
="5" height
="5" /></td
>"; echo"<td width="90%" bgcolor="#6284b7"><span class="tekst"> <a href="index.php?strona=gal&kat=galeria/$file"><p align="left"><font face="Verdana" color="white" size="1">$tekst</a></span></td></tr></table>";
fclose($f);
}
}
}
}
}
closedir($handle);
}
?>
ale ma jeden blad wyswietla mi katalogi od 2 tz jak mam jeden w glaeri to nic nie wyswietla jak sa 2 to jeden tak...
a drugie pytanie to jak wyswietlic liste tych katalogow tak by nazwy $tekst byly wyswietlone alfabetycznie ?