I’m a newbie to databases. What I’ve done is:
<?php $con = mysqli_connect(‘localhost’, ‘admin’, ‘password’, ‘test’) or die("Connection failed: " . mysqli_connect_errno()); ?>
Somehow, now matter what I try, it keeps giving me a connection error. Am I doing something wrong?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.