Is there a way to link to a wildcard????
Instead of this-----

     echo "<a href=\"../ccdsv/images/$inv_no.jpg\">";
     echo "<img src=\"../ccdsv/images/thumbs/tn_$inv_no.jpg\">";

Something like this

echo "<a href=\"../ccdsv/images/$inv_no.jpg\">";
echo "<img src=\"../ccdsv/images/thumbs/tn_$inv_no
.jpg\">";

    what is your reasoning for this? do you have more than one .jpg per $inv_no?

    if so, you could always read the directory and then look at the images with the $inv_no and push them out and have a link for each...

    but w/o knowing exactly what you are talking about, it's hard to tell what you want...

    there may be a way to do it with apache rewrite as well...

      Yes there could be up to ten .jpg for each inv_no.

        then i'd do as i suggested, read the directory and then do some string searching on the .jpgs in there using your inv_no

          Write a Reply...