Current location: Hot Scripts Forums » Programming Languages » PHP » PHP & MSSQL. Script Problem, Works on localhost but not online


PHP & MSSQL. Script Problem, Works on localhost but not online

Reply
  #1 (permalink)  
Old 10-03-04, 01:45 PM
Lucas Lucas is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Mission, Texas
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
PHP & MSSQL. Script Problem, Works on localhost but not online

I have a PHP website running on localhost with MSSQL and it can be accessed through the web with no problems, works fine and everything. BUT when I put the website on the web so it just connects to the MSSQL in my computer and everything else run from the web so it does not take so much bandwidth and resources it gives this error: "Fatal error: Call to undefined function: mssql_connect() in /home/musource/public_html/config.php on line 47".

The config files refers to this line: //Database Connection

$msconnect=mssql_connect("$host","$alogin","$apass ") or die ("<p align='center'>We seem to be having problems with MSSQL Server. <Br>We Should be back shortly.</p>");
$msdb=mssql_select_db("$db",$msconnect) or die("<p align='center'>We seem to be having problems with MSSQL Database.<br>We should be back shortly.</p>");

Help is appriciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-03-04, 02:12 PM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
Ask your host whether they have enabled mssql extension or not.
__________________
just an ignorant noob with moronic solution...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-03-04, 02:34 PM
Lucas Lucas is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Mission, Texas
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Awww, thanks, it was that, but no, they do not allow remote database connections, oh well, thanks anyways.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for an online radio php script Swifty Script Requests 3 10-10-09 06:03 AM
Problem with PHP/.htaccess script, when using Internet Explorer digioz PHP 7 07-27-07 12:17 AM
problem with php script kappler0 PHP 3 05-04-04 12:07 PM
problem with PHP script on qmail server localrec PHP 2 03-25-04 02:49 PM
Looking for a Radio php online script Willing to pay Swifty Script Requests 1 02-06-04 01:34 PM


All times are GMT -5. The time now is 10:44 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.