I am attempting a connection to a sql db via php and keep getting an error I can\'t figure out. I can connect with another debug scripts with no errors. I get my connectio
mysqli_close($result);
The line above is incorrect. You only need to call mysqli_close()
once (if at all since, as pointed out in the comments, the connection is closed at the end of the execution of your script) and the parameter should be your link identifier, not your query resource.
Remove it.