For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > April 2006 > Re: [PHP-DB] mssql_select_db(): Unable to select database:









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] mssql_select_db(): Unable to select database:
chris smith

2006-04-08, 9:57 pm

On 4/9/06, blackwater dev <blackwaterdev@gmail.com> wrote:
> Hello all,
>
> I set up freetds on one of my servers and everything worked fine. I just
> set it up on another server (this one with the latest php) and now the sa=

me
> code seems to connect but can't select the db mssql_select_db(): Unable t=

o
> select database:. How can I figure out what's wrong? The mssql db is
> hosted remotely so both servers should be able to hit it fine and are usi=

ng
> the exact same source code. The differences are they are running differe=

nt
> versions of php and possibly freetds.


What error do you get?

Hmm looks like there's no mssql_error()...

turn up error reporting:
error_reporting(E_ALL);

and put display errors on:
ini_set('display_errors', true);

see if that gives you any ideas.
--
Postgresql & php tutorials
http://www.designmagick.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com