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...