SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Location
    1
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok so i am at part 4 of the tutorial..Connecting to MySQL with PHP--->

    where do i type this function? .....mysql_connect(<address>, <username>, <password> );

    is it on mysqld?

    I seem not to follow although it might appear intuitive.

    By the way: i appreciate all the help!


    ------------------
    Bradley's Bromide:
    "If computers get too powerful, we can organize them into a committee -- that will do them in."

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You execute the mysql_connect function in your PHP page. Before you do mysql_query or anything like that.

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    mysql_connect() is a PHP function, just like echo() (which you should have learned in Part 3). As such, you put it in a PHP script inside your Web page.

    If this is confusing, let me know and I'll try to give a more complete explanation.


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!


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
  •