Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 17, 2006, 2:43 am
rate this thread
I need to connect to a SQL Server database. I looked in the manual and it
seemed rather easy. It seemed that all I had to do was replace mysql with
mssql everywhere I had coded before.
So, naturally, on my first call which was to mssql_pconnect I received the
Fatal error: Call to undefined function mssql_pconnect()
Now I must say that php was not previously installed on this server. I had
the admin fellow install it (and this was his first time). Are the
database routines some sort of additional installation that simply haven't
Thanks for any help
It would help if we knew what platform/webserver you are using but a first guess
would be to check your PHP.INI file to make sure that you are loading the MSSQL
Donations welcomed. Http://www.firstdbasource.com/donations.html
He loaded the mssql, but did something wrong. It now says:
Fatal error: Call to undefined function mssql_pconnect() in
E:\mysite\sqlLoginNewDB.php on line 9
PHP Warning: PHP Startup: Unable to load dynamic library './php_mssql.dll' -
The specified module could not be found. in Unknown on line 0
1. in php.ini there is a tag named 'extension_dir'. This needs to point
to the 'ext' directory of wherever you installed php.
2. there is a diagnostic you can run that will tell you all about how
the system is set up (and will help us diagnose things for you). Simply
create a file with the following contents: <?php phpinfo() ?> and run it.