SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    I'm a college yuppie now! sbdi's Avatar
    Join Date
    Jul 2000
    Location
    Dublin , Ireland
    Posts
    1,271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Connect to DSN ?

    Hey I recently got a book on PHP and have been messing around with forms and cookies mainly. But the book only goes into how to connect to a MySQL server I cant seem to find anything about connecting to a access database it also assumes that the MySql is on a localhost!

    So anway could someone just post the basic code to connect to a database without and with a DSN set up.

    Thanks
    Back Again

  2. #2
    purple monkey dishwasher scoates's Avatar
    Join Date
    Nov 2001
    Location
    Montreal
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You'll need to read up on the ODBC functions to access a DSN (if you're talking about a microsoft DSN).

    http://www.php.net/manual/en/ref.odbc.php

  3. #3
    SitePoint Evangelist CyberFuture's Avatar
    Join Date
    May 2001
    Location
    San Diego, CA
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •