Jump to content
Old threads will finally start getting archived ×

MiloG21

New Members
  • Posts

    1
  • Joined

  • Last visited

MiloG21's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.