sorry I'm late but just now I was able to resume this work!
In a result page after delete I want redirect to the same page with an id:
I have this link:
galleria_results.php?idalbum=4 (idalbum from album table)
In this page I have some record idgallery (from gallery table)
idgallery1
idgallery2
idgallery3
I need delete es: idgallery2 and again redirect to
galleria_results.php?idalbum=4
I try with session but get always
galleria_results.php?idalbum=
without id