|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi,
I am trying to work with php and MS SQL $connection = mssql_connect("localhost","sa","password"); $db = mssql_select_db("tz_base2", $connection) or die("Couldn't select database tz_base2."); When i enter de lines above, i get the error message mssql_connect not recognized. Do i have an odbc problem or what is the ... |
|
#2
|
||||
|
||||
|
This probably means that your PHP is not compiled with support for connecting to MS SQL databases. Create a script that contains the line phpinfo() and view the "configure" line (near the top) to see if support for MS SQL has been compiled in. If not, you'll need to recompile PHP with that option enabled.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Why, oh why or die("could not connect") |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|