hi im not great at programming and have been trying to fix this for ages.
i am using a script to create thumbnails and display images it all works fine.
the problem is for each record on my database, eg each page on my site i have numerical image folders eg images/1
images/2 and so on.
on my php page i have the gallery which only shows the images from the one folder,
can anyone help me write in the variable which will show the correct folder based on the id passed from the row in the database?.
ie
<?php
//location of your images//
$images_dir = "images/1/";
$thumbs_dir = "images/1/thumbnails/";
?>
my understanding is it should be something like
$images_dir ="images/$id"
$thumbs_dir ="images/$id/thumbnails"
with the id being passed and set before, ie
$id = $get [id]
please help.