Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
Triest is on a distinguished road
 
Posts: 2
Join Date: Nov 2010
Default PHP To Database error. - 11-24-2010, 03:13 AM

Hello,

I'm trying to host a registration file, however, The php file is not connecting to the database.

The database is located somewhere else ( A dedicated server )

Is there anything i could do to fix this?

Link to register page

Thanks in advance
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 4,609
Join Date: Jul 2009
Location: Spain
Default 11-24-2010, 05:46 AM

Hi Triest,

In the file containing the data connection to the external database, check that you put all the correct connection information (server name, name of the database, username and password).

The link you put requests username and password so that we do not help much


Si este mensaje te ha servido de ayuda no dudes en pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Bad Karma[CORE]'s Avatar
Guilty as charged
Bad Karma[CORE] is on a distinguished road
 
Posts: 6,133
Join Date: May 2008
Default 11-24-2010, 05:57 AM

also might wanna use the mysql server IP instead of the host name for you external database server. Some servers currently have name resolving turned off because there are some minor issues. So with name resolving off and you using a host name instead of an IP the connection also is bound to fail.
Reply With Quote
(#4 (permalink))
Old
Junior Member
Triest is on a distinguished road
 
Posts: 2
Join Date: Nov 2010
Default 11-24-2010, 08:03 PM

// Connection with MSSQL server
$conn=mssql_connect('64.244.62.198','sa','Shaiya12 3');

if (!$conn) { die('Something went wrong while connecting to MSSQL');}

That is my processor.

Password from website removed.
Reply With Quote
(#5 (permalink))
Old
Junior Member
rvtraveller is on a distinguished road
 
Posts: 8
Join Date: Dec 2009
Default 11-24-2010, 09:38 PM

Do you need to define the instance of the variable of the MSSQL server you are trying to connect to? Do you get any error messages?
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com