Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
if ($key == "school") {
$cat = "school";
}
else if ($key == "personal") {
$cat = "personal";
}
else if ($key == "other") {
$cat = "other";
}
<?php
$dir=array("school","personal","other");
foreach($dir as $key){
$handle = opendir("gallery/cats/$key");
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "index.html" && $file != "Thumbs.db") {
if ($key == "school") {
$cat = "school";
}else if ($key == "personal") {
$cat = "personal";
}else if ($key == "other") {
$cat = "other";
}
echo "Category: $cat <br> File: $file";
}
}
closedir($handle);
}
?>
Не трябва ли да е:DJCharge каза:.. и си готов :roll:
Дали ще е с " или пък с ' няма значение.human каза:Не трябва ли да е:DJCharge каза:.. и си готов :roll:
if ($key == 'school') { $cat = "school"; }
if ($key == 'personal') { $cat = "personal"; }
if ($key == 'other') { $cat = "other"; }
:roll:
if ($key == "school") { $cat = "school"; }
elseif ($key == "personal') { $cat = "personal"; }
elseif ($key == "other") { $cat = "other"; }
HunteR каза:Дали ще е с " или пък с ' няма значение.human каза:Не трябва ли да е:DJCharge каза:.. и си готов :roll:
if ($key == 'school') { $cat = "school"; }
if ($key == 'personal') { $cat = "personal"; }
if ($key == 'other') { $cat = "other"; }
:roll:
Иначе става и
Код:if ($key == "school") { $cat = "school"; } elseif ($key == "personal') { $cat = "personal"; } elseif ($key == "other") { $cat = "other"; }
if ($key == 'school') { $cat = "school"; }
if ($key == 'personal') { $cat = "personal"; }
if ($key == 'other') { $cat = "other"; }
d3a7h_1313 каза:е така треа да е
Код:if ($key == 'school') { $cat = "school"; } if ($key == 'personal') { $cat = "personal"; } if ($key == 'other') { $cat = "other"; }