Hi there,
I am just a beginner in coding, and recently just followed a tutorial (https://www.youtube.com/watch?v=3p_-jPWne4Y&ab_channel=QuickProgramming) to incorporate PHP to my website for a forum page. I have already exported the database and uploaded my website into my website domain (z.com), but for some reason the website displays "Could not connect to database".
I have already created the connection.php file that I also followed from another video as seen below:
<?php
$con=mysqli_connect('localhost:3306','cupnvhkz_user','Password','cupnvhkz_deed-ph');
if(!$con)
{
die(' Please Check Your Connection' .mysqli_error($con));
}
?>
I have also added this to my index.php:
<?php
include "connection.php";
Is there anything else that I am missing?