/    Sign up×
Community /Pin to ProfileBookmark

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 ?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 03.2013 — 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)?
Copy linkTweet thisAlerts:
@alendonaldauthorJul 04.2013 — NogDog

I want to connect Sql which is product of Microsoft.
Copy linkTweet thisAlerts:
@NogDogJul 08.2013 — 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.
Copy linkTweet thisAlerts:
@alendonaldauthorJul 08.2013 — thank u very much..
×

Success!

Help @alendonald spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...