Forum Moderators: coopster
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:
if (trim($db)=='')
{
echo("Please enter the name of the Database.");
}
dc