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