$message .= " * Database User Name is empty!" . "<br>"; $error = true; } if (trim($user_data['txtSiteName']) == '') { $message .= " * Site Name is empty!" . "<br>"; $error = true; } if (trim($user_data['txtLicenseKey']) == '') { $message .= " * License Key is empty!" . "<br>"; $error = true; } if (trim($user_data['txtAdminEmail']) == '') { $message .= " * Admin Email is empty!" . "<br>"; $error = true; } else { if (!ServerConfig::is_valid_email($user_data['txtAdminEmail'])) { $message .= " * Invalid Admin Email!" . "<br>"; $error = true; } } //check the db connection $connection = @mysql_connect($user_data['txtDBServerName'], $user_data['txtDBUserName'], $user_data['txtDBPassword']); if ($connection === false) { $error = true; $message .= " * Connection Not Successful! Please verify your database details!<br>"; } else { $dbselected = @mysql_select_db($user_data['txtDBName'], $connection); if (!$dbselected) { $error = true; $message .= " * Database could not be selected! Please verify your database details!<br>"; }