Jump to content
Larry Ullman's Book Forums

Connecting To My Web Database


Recommended Posts

Hey guys. I need some serious help. I was working on building my website and was using xampp as my local host. My website was made to generate almost everything from the database. While I work locally it works fine, but once I upload my files through filezilla all I get is my basic index.php and style.css.

When I work locally I use the following connection code:

$con = mysqli_connect ("localhost","root","","database_name");
 
I don't know what to do or change when I upload the files to get my website to look at the web server. Any help would be greatly appreciated!
 
Side note. I am using hostica has my hosting service if that helps
Link to comment
Share on other sites

 Share

×
×
  • Create New...