Showing results for 
Search instead for 
Did you mean: 

Php is not connecting to the database?

We're currently studying databases and we need to connect our website to well, the database. Basically, we need to make a simple but functioning log in/sign up page which can store and retrieve data from our database.

We were given a template to work with, and it works with my classmates. However, it doesn't seem to work with GoDaddy users in class. We've been scratching our heads over it... is there an extra step in developing websites with database functionality for GoDaddy?

Super User II
Super User II

Re: Php is not connecting to the database?



I am assuming you are using a cPanel server - do you have the host / port set correctly??


When you run your PHP script do you have any error checks in your code to see why it isn't connecting?

GoDaddy Pro User - Managing over 300 WP Sites