The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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:
    6
    replace themetr with localhost
     
Loading...

Share This Page