Re: [PHP-WIN] Supplied argument is not valid MS SQL-Link resource

2001-04-15 Thread Frank M. Kromann
mssql_select_db returns true or false and not a link resource. You should change the code to: $Conn=mssql_connect('192.168.1.20','username','password'); if (mssql_select_db('My_Database',$Conn)) { $QueryString="select id, name from my_table"; $Test=mssql_query($QueryString, $Conn);

[PHP-WIN] Supplied argument is not valid MS SQL-Link resource

2001-04-14 Thread davek
Does anybody know how to fix this error? "Supplied argument is not valid MS SQL-Link resource" I am running: NT4 MSSQL7.0 IIS4 PHP 4.0.4pl1 I've been running php3 for some time now without any problems but want to upgrade to 4. This error seems to be occuring at the mssql_query() function. $