/    Sign up×
Community /Pin to ProfileBookmark

MSSQL connection to php (Call to undefined function mssql_connect())

Hi!

i’m new to php to sql connection.

$server = ‘.PHPC019’;
$link = mssql_connect($server, “php”, “php”);

if (!$link) {
die(‘Something went wrong while connecting to MSSQL’);
}

i check the $server and it returns ‘.PHPC019′ how can i fix this?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@ballballauthorJan 28.2014 — sorry forgot to be specific, i'm currently running php on IIS and the database that i need to use is SQL the APP is sql server management studio, i need help could anyone help me?
Copy linkTweet thisAlerts:
@NogDogJan 28.2014 — Sounds like the MSSQL extension is not installed.
Copy linkTweet thisAlerts:
@ballballauthorJan 29.2014 — ok, do you know how to do it?
Copy linkTweet thisAlerts:
@NogDogJan 29.2014 — ok, do you know how to do it?[/QUOTE]

Not really. I would have to read the manual instructions on the page I linked to in my first reply and muddle my way through it. ?
×

Success!

Help @ballball 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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...