woo hoo!
it seems to be working fine now.
i went with the code:
PHP Code:
if (preg_match("/^$gallery/", $mystring)) {
$currentgallery[] = $mystring;
}
it was more clear to me, the other one confused me a bit
anyway, your explanations of the problem made perfect sense to me after i looked at the code again. i had tunnel vision in my troubleshooting and kept looking at my sql statements, assuming my select statements were wrong.
Thanks! you are both like cyberheroes for me...ok, that is too dorky, but really, thanks for the time and help.