cyklus a pole
2 příspěvky
Archiv diskusního fóra
Fórum je uzavřené a slouží pouze ke čtení. Některé informace mohou být zastaralé.
-
kod: <? $dir = "./fotky/"; $subdir = opendir("$dir"); while ($file = readdir($subdir)) { $obr = "$dir$file"; $size = getimagesize($obr); $width = $size[0]; $height = $size[1]; $pole = array ( "$i" => array ( "show" => "<img border=\"0\" src=\"$obr\" width=\"$width\" height=\"height\">", "width" => "$width", "height" => "$height", "name" => "$obr" ) ); ++ $i; echo $pole ["10"] ["name"].'<br>'; // toto sa zobrazi } echo $pole ["10"] ["show"]; //toto sa uz nezobrazi. PRECO? ?> no problem je asi jasny, dufam, ze mi poradite. vopred vdaka.
-
co takhle si nastavit ukazatel pole?