do not use the same variable name for two distinct things
when looping, if looking for previous_dbname, would always be defined because of the last loop, so comparing the wrong databases
Please register or sign in to comment
when looping, if looking for previous_dbname, would always be defined because of the last loop, so comparing the wrong databases