$junk = exec("mysqladmin -u $dbUser --password=$dbPwd create $dbDefaultName 2>&1");
Problem with this line is that it always throws a 'CREATE DATABASE' error if the database already exists, but I can't find anything in the mysqladmin manual as to how to handle this. How can I either check for database existence prior to this command, or suppress it somehow?
Thanx
Phil