If it doesn't exist you'll get undef for $db. Check the return value of your connect and do something appropriate.
In reply to Re: check if databse exists before connection is made!
by duff
in thread check if databse exists before connection is made!
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |