SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot jrickards's Avatar
    Join Date
    May 2003
    Location
    Sudbury
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Path to MySQL db

    Hi:

    I read the first four downloadable chapters of the SitePoint book on PHP and MySQL. Have a question as a newbie.

    The 4th free chapter showed how to create a jokes database, no real problems with understanding the chapter although I haven't yet been able to test out the code. Where does the jokes database reside? In the same folder as the PHP code that creates it? If so, how do I access a database that exists in another folder?

    Jules

  2. #2
    pie??? PIE!!!! rsdl's Avatar
    Join Date
    May 2001
    Location
    Vancouver, BC Canada
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the joke database resides in the mysql directory. When you mean access the database, do you mean accessing it via php? or accessing it manually? if it's the former then you need to read on about accessing database stuff using php in mysql. If it's the latter, then just go into your mysql directory, it's in one of the sub folders. There will be a sub-sub-folder that's named after whatever name you gave your database.

    i hope this answers your question

  3. #3
    SitePoint Zealot jrickards's Avatar
    Join Date
    May 2003
    Location
    Sudbury
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Accessing via PHP. OK, I will read more.

    Thanks,

    Jules


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
  •