I'm going through the images I have in the img
folder, and all of the images show up fine except for the ones that have spacing in their names e.g. "Screen shot.png". The user can upload photos, and their files may have spaces in the file name. Should I just remove all spaces before I save the images into my img
folder? Or is there a way to still display the images with spacing in the image filepath?
function displayImage($row) {
$file_path = "img/" . $row['File_name'];
$image_title = $row['Title'];
echo "<br>" . $file_path;
echo "<li><img src=$file_path alt=$image_title>";
echo "<span class='info'><span>$image_title</span></span></li>";
}