If else condition in mysqli_connect

Hello friends I am new to php. I just wrote a code to connect php to database

For that I am getting an parser error as
Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\login\process.php on line 3

Please help me to resolve the issue