?
Solved

mssql_connect function undefined error

Posted on 2003-10-29
7
Medium Priority
?
200 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 240 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
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 dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

762 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