Welcome to WebmasterWorld Guest from 22.214.171.124
As previously mentioned, empty only checks vars. From the PHP website:
Note: empty() only checks variables as anything else will result in a parse error. In other words, the following will not work: empty(trim($name)).
Why not use:
echo("Please enter the name of the Database.");