I would like to try to connect to a database (using odbc) where I necessarily don't know the exact password. That is, I have a couple of different alternatives what the password might be, and I want my code to figure out which one is right.
How can I do this using PHP?
Just wrap the call to
odbc_connect
in a foreach loop trying all the passwords:and then just do