Solved

mssql_connect function undefined error

Posted on 2003-10-29
7
192 Views
Last Modified: 2013-12-12
This is my first time trying to use sql server with php.  I have always worked with mysql and php and never had any problems with database connectivity.   The function for mssql do not seem to exist in my installation of php.  Is there some settings I have to change to have them work properly.  I am runnint this on a windows 2000 machine with apache.  again a first for me since I have always run apache and php under linux.   So I'm not sure if I have missed some step but I can't use the mssql function for some reason. Does anyone know how I can solve this issue.

Kelly
0
Comment
Question by:unreal400
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 2

Author Comment

by:unreal400
ID: 9645334
I have got it to find the functions now but it still will not connect to the database.

I am useing   mssql_connect("10.10.10.101:1433","user","pass");
but I get an unable to connect message.  any idea on what might be preventing me access.
I am using apache on a windows 2000 server machine.
The database is SQL server 2000 and is on a different machine but has the ports open and the database is running because I have several other programs accesing it.

If anyone has any idea's let me know.

Kelly
0
 

Expert Comment

by:tetminal
ID: 9647711
hey, try using

mysql_connect("10.10.10.101:1433","user","pass");

mysql_connect("10.10.10.101","user","pass");

or just
mysql_connect("localhost","user","pass");

give it a try.. i think something like this happend to me at first too.. :)
0
 
LVL 33

Accepted Solution

by:
snoyes_jw earned 60 total points
ID: 9660989
try using a comma instead of a colon to specify the port, like this:

mssql_connect("10.10.10.101,1433","user","pass");
0
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 10106903
It's been a while since the last post.  Is the problem solved?
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question