that didn't work but i think i understand why now. i got an error message about scalar assignment. now that i understand the statement better, it is setting the value of $in... so if i want it to be lowercase, i should just enter it that way. it isn't comparing anything, it's assigning the value.
i've gotten lots of help here so i'll share what i've done:
Code:
### two different possibilities for showing validated records
### first one below shows unvalidated records to admin only
### second one shows to anyone who is logged in
### use $admin_only flag in cfg to choose which
if ($admin_only) {
(!$per_admin) and ($in{$db_validated_field} = "Yes"); # validated records only
}
else {
($db_userid eq "default") and ($in{$db_validated_field} = "Yes"); # validated records only
}
Code:
this lets me decide for each database whether i want to show unvalidated records to just the admin or
to any user who is logged in without modifying db.cgi every time.