Results 1 to 5 of 5
  1. #1

    Question Connecting to a mySQL db etc...?

    I have searched the web and I can easily find tutorials, but they just don't explain well enought... So I would like an example code to do this, (ie, fake password, and whatever local host is reall supost to mean, because they don't tell you, and local host can mean many things..)


  2. #2
    I'm not entirely sure what your question is, do you want to know what localhost means? Or is it something completley different?

  3. #3
    Join Date
    Dec 2002
    NY, NY
    what language do you want to use?
    and localhost is your computer.
    so when you do ..
    http://localhost or
    Its like saying http://myComputer

  4. #4
    I think I might of got it. Because not everyone should assume your computer works as a server, like mine doesn't because it donesn't want to properly install php, mySQL, and everything, but it will install appache.

    By the way, I use php.

  5. #5
    Join Date
    Jul 2003
    "localhost" means the computer that the script is running on.

    On most hosting configurations, the mysql server and the web server (apache) are both running on the same machine, that is why you always see "localhost" as the mysql server.

    If your mysql server was running on and your webserver (where your script is running) was, then your connect string would be mysql_connect("", "myusername", "mypassword");

    I hope this clears things up for you.
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

Posting Permissions

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