www.webdeveloper.com
Results 1 to 5 of 5

Thread: How to connect Php with Sql Database?

  1. #1
    Join Date
    Jul 2013
    Posts
    45

    How to connect Php with Sql Database?

    Hi,
    I want to connect my php program to sql database for storing information, So tell me how I connect php to sql database. Can we connect Html with Sql database so tell me how ?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,334
    By "SQL database", do you mean MS SQL (Microsoft product) specifically, or any database that uses SQL (which is pretty much anything you're likely to use with PHP)?
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2013
    Posts
    45
    NogDog
    I want to connect Sql which is product of Microsoft.

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,334
    Your 2 main options are to either use the MSSQL extension or else the PDO extension using the SQLSRV interface with a MSSQL DSN.

    I'd recommend using PDO unless you're sure you'll never want to use your code with a different DBMS at some time in the future.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  5. #5
    Join Date
    Jul 2013
    Posts
    45
    thank u very much..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles