![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 63 Pomógł: 0 Dołączył: 8.01.2004 Skąd: Legnionowo Ostrzeżenie: (0%) ![]() ![]() |
Witam mam taki problem mam plik index.php i includuje do niego plik gal.php link wyglada tak:
[php:1:64801eebb0]<a href="index.php?id=100&folder=fotografie" > ?>[/php:1:64801eebb0] plik gal wyglada tak: [php:1:64801eebb0]<?php $folder=$_GET['folder']; $tytul = " galeria"; $styl = "galeria.css"; $opis = "opis.txt"; $poprzednie = "poprzednie"; $nastepne = "następne"; $powrot = "powrót"; $homepage = "Strona główna"; $homelink = "strona"; // koniec $dir = opendir("$folder/"); while ($plik = readdir($dir)) { if (is_file("$folder/$plik") && eregi(".jpg",$plik) && !eregi("_t.jpg",$plik)) { $fotos[] = $plik; } } sort($fotos); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <title><?php echo($tytul) ?></title> </head> <?php echo("<link rel="stylesheet" href="$styl">") ?> <body> <div align="center"> <h2><?php echo ($tytul) ?></h2> <!-- <b>Zdjęć: <? print count($fotos); ?></b><br> --> <?php if ($show=="") { ?> <div class="opis"><?php if (file_exists("$opis")) include "$opis" ?></div> <br> <table align="center" cellspacing="0" cellpadding="2" border="0"> <tr> <? $licznik = 1; while (list($key,$val) = each($fotos)) { print "<td width=75><a href="$PHP_SELF?id=$id&show=$key"><img src="$folder/".substr($val,0,-4)."_t.jpg" border="0"><br>".ucfirst(substr($val,0,-4))."</a></td>n"; if ($licznik > 4) { $licznik = 0; print "</tr><tr>"; } $licznik += 1; } ?> </tr> </table> <br> <br> <?php echo ("<a href="$homelink">$homepage</a>") ?> <?php } ?> <?php if ($show!="") { ?> <?php echo ("<img src="$fotos[$show]">") ?> <?php $prev = $show-1; $next = $show+1; ?> <br><br><br> <div class="komentarz"> <?php if (file_exists("$komentarze")) { $komentarze = file("$komentarze"); echo($komentarze[$show]); } ?> </div> <br> <TABLE width="300"> <TR> <TD align="left" width="50%"><?php if ($show>"0") echo("<a href="$PHP_SELF?show=$prev">$poprzednie</a>") ?></TD> <TD align="right" width="50%"><?php if ($show!=(count($fotos)-1)) echo ("<a href="$PHP_SELF?show=$next">$nastepne</a>") ?></TD> </TR> <TR> <TD colspan="2" align="center"> <?php echo ("<a href="$PHP_SELF">$powrot</a>[space][space]<a href="$homelink">$homepage</a>") ?> </TD> <TD></TD> </TR> </TABLE> <?php } ?> </div> </body> </html> ?>[/php:1:64801eebb0] i ten plik prawidlowo wczytuje mi miniaturki ale gdy mam wczytac powiekszenie miniaturki to wyskakuje : Warning: sort() expects parameter 1 to be array, null given in /home/users/alchemic/public_html/photo/gal.php on line 20 gdzie jest problem ? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 14:47 |