Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2004
    Location
    San Francisco
    Posts
    1

    Question php login script

    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. #2
    Member
    Join Date
    Jul 2003
    Posts
    52

    Default

    replace themetr with localhost

Similar Threads & Tags
Similar threads

  1. Help with WHM Login script (PHP)
    By asofrank in forum cPanel Developers
    Replies: 3
    Last Post: 07-28-2010, 06:26 AM
  2. Something blocks php script to login to cpanel
    By trecords in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-16-2010, 07:19 AM
  3. Pass a variable to PHP Script when piping msg to that script?
    By doni49 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-02-2007, 06:52 PM
  4. php Script to login on Horde and Neomail
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 31
    Last Post: 10-30-2005, 11:18 AM
  5. Automating Account Creation: Shell Script? PHP Script?
    By RangerWest in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-13-2003, 09:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube