Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DonG

    (@dong)

    Some days I think I just hold my mouth wrong. I had started with ‘localhost’ and was recieving an error that many others have reported. Changed the string as I mentioned above, got a different error. I attempted ‘localhost’ one more time and bingo.
    Sometimes . . . it just escapes me. Sorry for the bother. But most importantly, thanks for the support!!
    Don

    Thread Starter DonG

    (@dong)

    Thanks podz for replying.
    Cpanels gives two examples after the database name, username and password are created. For Perl the example is:
    $dbh = DBI->connect(“DBI:mysql:netbased_nblog:localhost”,”netbased_nblog”,”<PASSWORD HERE>”);
    For PHP the example is:
    $dbh=mysql_connect (“localhost”, “netbased_nblog”, “<PASSWORD HERE>”) or die (‘I cannot connect to the database because: ‘ . mysql_error()); mysql_select_db (“netbased_nblog”);
    As you can see above, I inserted the PHP connection string between the ‘ ‘ replacing localhost. Does this give you any insights?
    Thanks again, Don

Viewing 2 replies - 1 through 2 (of 2 total)