Re: connecting to a mssql database
- From: Kim André Akerø <kimandre@xxxxxxxxxxxxxxxxxx>
- Date: 30 Aug 2006 15:40:05 GMT
Advo wrote:
Im having major problems trying to connect to a mssql database thats
hosted on our server.
I've got the ip, username, password and database name, yet no matter
what i try, I cant seem to connect. I've trawled the net for hours
looking for code, has anyone got any that definately works, or just a
simple way I can check the connection.
I don't know how you've tried it, but you should be doing something
like this in your code:
mysql_connect($ip, $username, $password);
mysql_select_db($database);
You should also be doing this on the server, and not directly from
home. Security settings on the database server will only allow
connections from a certain IP (or IP range).
--
Kim André Akerø
- kimandre@xxxxxxxxxxxxxxxxxx
(remove NOSPAM to contact me directly)
.
- Follow-Ups:
- Re: connecting to a mssql database
- From: Jerry Stuckle
- Re: connecting to a mssql database
- References:
- connecting to a mssql database
- From: Advo
- connecting to a mssql database
- Prev by Date: connecting to a mssql database
- Next by Date: Re: PHP5 with PDFlib
- Previous by thread: connecting to a mssql database
- Next by thread: Re: connecting to a mssql database
- Index(es):
Relevant Pages
|