Jump to content

error PHP - MS SQL


Recommended Posts



For a corparate intranet I am trying te read information from a MS Access database, using php and the MS SQL Server 2000. PHP works fine, SQL sever works fine and I can connect to that server using my php script.


My problem is this: I can't get result from even a simple SELECT query:


$query = "SELECT * FROM tablename";

$result = mssql_query ($query);


Is this problem because of the Access database? Should it be an SQL Server db? The computer where php is installed, also has the SQL Server tools installed. So that can't be the problem.


[a href=\"http://at2.php.net/manual/nl/ref.mssql.php\" target=\"_blank\"]http://at2.php.net/manual/nl/ref.mssql.php[/a] did't give me any solutions.


Does anybody have an idea?





Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.