Jump to content

[SOLVED] how to connec to a DB via URL, and not "localhost"


jjmusicpro

Recommended Posts

i was curious, how i connect using a url to a db, and not saying "localhost"

 

here is my connection files, that in use the include feature on my other pages...

 

 

connect.php

 

<?php

// This is an example of config.php

$dbhost = 'localhost';

$dbuser = 'xxxxx';

$dbpass = 'joxxxx';

$dbname = 'xxxx';

?>

 

 

would i just change the DBHOST to the URL?

 

Does your mysql_connect() function call have any error checking to get it to tell you why it failed?

 

You will need to provide more information about what your code is and what you are doing for anyone in a forum to be able to help.

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.