Jump to content

PHP red under line vscode

OfficerHarroberi

Hi, I am trying to add a Log In form to my website and I have a problem when I put in the code. The image with the white background is the PHP settings for MySQL and other pic is the red underlined code in VS Code. 

die("Error: connection error. " . mysqli_connect)_error());

 

Screen Shot 2020-12-01 at 10.05.49 AM.png

Screen Shot 2020-12-01 at 10.06.26 AM.png

Link to comment
Share on other sites

Link to post
Share on other sites

die("Error: connection error. " . mysqli_connect)_error());

You have two opening parenthesis, but have three closing parenthesis.

Are you sure the "connect)" is correct?

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, minibois said:

die("Error: connection error. " . mysqli_connect)_error());

You have two opening parenthesis, but have three closing parenthesis.

Are you sure the "connect)" is correct?

That fixed it, thank you

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×