Jump to content

[SOLVED] Is there a difference between XAAMP and CPANEL when connecting to a database?


webmaster1

Recommended Posts

Hi All,

 

Just a quickie. I use CPANEL and myPHPAdmin. I can connect to a database fine when including the following file:

 

<?php
$host = 'localhost'; //usually localhost
$username = 'xxx'; //your username assigned to your database
$password = 'xxx'; //your password assigned to your user & database
$database = 'xxx'; //your database name
?>

 

Another PHP Freak is usng XAAMP but recieves and error message when using the exact same script.

 

Whats the difference?  ???

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.