Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php login script

Discussion in 'General Discussion' started by ScottSF, Feb 19, 2004.

  1. ScottSF

    ScottSF Registered

    Joined:
    Feb 19, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    San Francisco
    the following php login script:

    $mysql_link = mysql_connect("themeetr", "httpd", "pass_word");
    $mysql_select_db("themeetr_members", $mysql_link);

    results in the following errors:

    Warning: mysql_connect(): Unknown MySQL Server Host 'themeetr' (2) in /web/themeetr/public_html/php/login.php on line 28

    Fatal error: Call to undefined function: () in /web/themeetr/public_html/php/login.php on line 29

    this is what i use on my other sites. why doesn't it work here?
    Scott
     
  2. stftk14

    stftk14 Well-Known Member

    Joined:
    Jul 10, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    156
    replace themetr with localhost
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice