I put the mysql information into my settings file fo sql connection from the database i installed, however when trying to goto run my scripts it gives me this error
Warning : mysqli_connect(): (HY000/1045): Access denied for user ‘if0_34637438’@‘192.168.0.47’ (using password: YES) in /home/vol4_6/infinityfree.com/if0_34637438/htdocs/admin/settings.php on line 9
Connection failed: Access denied for user ‘if0_34637438’@‘192.168.0.47’ (using password: YES)
Why would my username be denied access to it’s own databases? lol that makes no sence.
MY code:
<?php // Database configuration $servername = "sql308.infinityfree.com"; $username = "if0_34637438"; $password = "Password_here"; $dbname = "if0_34637438_bingo_cards"; // Create a database connection $connection = mysqli_connect($servername, $username, $password, $dbname); // Check if the connection was successful if (!$connection) { die("Connection failed: " . mysqli_connect_error()); } ?>