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

You should share that code from line 1 to at least 3.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.