I upload here a PHP file called singhloop.php which works, but I need 2 changes to it:
(1) there is a variable $dir.
Currently the “<a href=” takes the user to a folder which includes the $dir in its path, I need that link to NOT INCLUDE the value of $dir
Example: if $dir = ‘thumbs’ and the code finds a file called h1.jpg in the ‘thumbs’ folder, it currently outputs a link to ‘path-above-p-folder/p/thumbs/h1.php’
CHANGE THIS so that it will be: ‘path-above-p=folder/p/h1.php’
DO THIS by adding a new variable $getfrom to contain the path /p/ which I can edit if I find that I need a different place to fetch .php files from
(2) ADD INLINE CODE so that the link has a hover state that puts a 2px border around the image when hovered-over.
NEEDS TO WORK EQUALLY on all platforms (Windows, Mac, iOS, Android) and all browsers.
= = = = = = = = = = = = = =
foreach ($images as $image) {
$imageName = preg_replace(’/.[^.\s]{3,4}$/’, ‘’, $image);
$imageFullName = $image;
?>