Welcome to WebmasterWorld Guest from 188.8.131.52
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.");