Thanks MT. 1st question: yes, it's the same as the if() that mr h posted. 2nd question: yes, I was finally able to get the 'inside' stuff outputted and as you can see continue is still there.
First here's the code (adapted so I could see the inside info):
foreach($values as $key=>$value) {
global $$key;
$test .= 'outside if() (for '.$key.'): $$key->db is: -'.$$key->db.'- <br/>';
if(!$$key->db || $query_table != $$key->db) {
$test .= 'inside if() (for '.$key.'): $$key->db is: -'.$$key->db.'- <br/>';
continue;}
..
}
Result:
outside if() (for username): $$key->db is: --
inside if() (for username): $$key->db is: --
outside if() (for email_address_1): $$key->db is: --
inside if() (for email_address_1): $$key->db is: --
OK, so no values show up there at all!
So I just add this debug die() in the above code, like this:
foreach($values as $key=>$value) {
global $$key;
// added this:
die($key . " --> value for db --> " . $$key->db);
$test .= 'outside if() (for '.$key.'): $$key->db is: -'.$$key->db.'- <br/>';
if(!$$key->db || $query_table != $$key->db) {
$test .= 'inside if() (for '.$key.'): $$key->db is: -'.$$key->db.'- <br/>';
continue;}
..
}
Result:
username --> value for db --> 1
(btw I have to leave my workstation until tomorrow. Thanks for the help. Hope to hear from you again by morning!)