catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 10-08-2007, 10:31 PM   #1 (permalink)
Registered User
 
Join Date: Apr 2003
Posts: 9
PHP and SQL Server connection problem

Hi

I am trying to connect to the SQL Server 2000 database from PHP. I have a page that contains just

<?php

mssql_connect("mssql.active-ns.com,1433", "mib_code", "***") or die("error");

?>

and this fails every time even though the username and password are correct.

Any suggestions would be gratefully received!
myefforts is offline   Reply With Quote
Old 13-11-2007, 07:40 PM   #2 (permalink)
Registered User
 
Join Date: Feb 2003
Location: Yorkshire, UK
Posts: 22
Any suggestions to this issue? I'm using the following and the connection is failing:

$link_id = mssql_connect('mssql.catalyst2.com', 'name', 'password') or die('Message');
aiBET is offline   Reply With Quote
Old 13-11-2007, 07:47 PM   #3 (permalink)
Registered User
 
Join Date: Apr 2003
Posts: 9
I couldn't get the PHP mssql functions to work at all. I set up an ODBC data source instead and used:
PHP Code:
odbc_connect($dsn$user$password); 
hope this helps
myefforts is offline   Reply With Quote
Old 14-11-2007, 10:07 AM   #4 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Hi,

Sorry this must have been overlooked. If you can pm me your domain I will make sure the mssql module is enabled properly in PHP.
paulredpath is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:43 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.