xampp problem

Status
Not open for further replies.
Joined
Oct 14, 2011
Messages
1,274
Reaction score
122
Hi guys im here to ask for a help because I really get confuse with this problem. Im not an expert in running website so it's alright if you'll call me a noob/**** or whatever.

Im using xampp 1.7.3 and trying to run my website but when I go in my localhost/127.0.0.1 it shows this:
Code:
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\***\inc\votebox.inc.php on line 213

Here's the line 213 in votebox.inc.php
Code:
$mssqlcon = mssql_connect($mssqlServer, $mssqlUser, $mssqlPass);

I looked on it but guess there's nothing wrong on that line. Now, as I said 'Im really confused now'. If you can tell me what's the problem of this I would really appreciate it. Or if there's another option to fix this, just tell me how to fix it.

Cheers,
inteL
 
I've had this php script call failure a few times when setting a forum up. it's generally a failure in the line where it didn't find what it was looking for, not the fact it was writing poorly.
 
Newer version of php do not support the mssql anymore. This is because microsoft took control of it. It is possible to install it again but pretty hard as I experienced. You could also use an odbc connection which is relatively easy. I did that myself too.
You could of course download an older version of xampp, which contains an older version of php, and then it would work.
 
Actually I completely solved it. Using the same ; deleting post, since it's xampp, restart it. Boom. it works. (though I'm still trying to figure out the username thing..)
 
Here's what I did:
Taking what Charles said, I deleted the ; from infront of extension. After that I rebooted Xampp (Due to a glitch in mine I have to reboot the whole pc). Presto. It reads that script line now. Also Leaving the "user name" part of the mssql_username blank let it connect to my Mssql library.
 
Status
Not open for further replies.
Back