SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Desparate For Db Connection Help

    I am going nuts trying to make sense of Kevin Yank's instructions in the book that I just purchased but I totally confused on how to connect to my database.

    I use Ultra Dev and I am trying to connect to a mysql db on a webhosting company's linux server.

    Does anyone know how to connect using UD and Phakt? I need step by step help with this part.

    If I could just get past the connection issue then I can practice PHP and mysql per Kevin's book.

    PLEASE HELP!!!
    Last edited by soccermom; Aug 3, 2002 at 18:40.

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2002
    Location
    Fort Lauderdale
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not familiar with UD. You said you were using PHP/MySQL. Here is what I use to connect:
    PHP Code:
    if (!($link_id mysql_connect("hostaddress""user""pw")))
      die(
    mysql_error());
    mysql_select_db("dbname"$link_id) or die(mysql_error()); 

  3. #3
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would imagine your host has MySQL set up to only allow local connections, so you can only connect on the server using "localhost". If this is the case you will need to ask if they will setup a remote connection for you

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


Bookmarks

Posting Permissions

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