Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: PhP help

  1. #11
    Join Date
    Jul 2007
    Location
    South Wales
    Posts
    1,386
    Tokens
    0

    Latest Awards:

    Default

    i dont now still not working :S
    Im a runescape player.



  2. #12
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    1,290

    Latest Awards:

    Default

    Quote Originally Posted by Hitman View Post
    Also, shouldn't the if statement be like this:

    PHP Code:
    <?
    $host 
    "localhost";
    $dbuser "Database User";
    $dbpwd "Database Password";
    $db "Database Name";
    $connect mysql_pconnect($host$dbuser$dbpwd);
    if(!
    $connect) {
    echo(
    "Could not connect to database...");
    } else {
    $select mysql_select_db($db);
    }
    ?>
    That should be fine, I don't get it, what editor are you using, Notepad?

  3. #13
    Join Date
    Jul 2007
    Location
    South Wales
    Posts
    1,386
    Tokens
    0

    Latest Awards:

    Default

    No dreamweaver :S
    Im a runescape player.



  4. #14
    Join Date
    Apr 2005
    Posts
    4,614
    Tokens
    1,290

    Latest Awards:

    Default

    Are you putting it in the code section and not the actual page? Try notepad.

  5. #15
    Join Date
    Jul 2007
    Location
    South Wales
    Posts
    1,386
    Tokens
    0

    Latest Awards:

    Default

    d.w hitman helping me
    Im a runescape player.



Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •