Re: Supplied argument is not a valid MS SQL-Link resource
| From: | Brian Clark | Date: | Sat, 14 Apr 2001 18:20:47 +0000 |
| Subject: | Re: Supplied argument is not a valid MS SQL-Link resource | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48572@lists.php.net to get a copy of this message | ||
Hi davek,
@ 1:50:14 PM on 4/14/2001, davek wrote:
> Does anybody know how to fix this error? "Supplied argument is not a
> valid MS SQL-Link resource" I am running:
...
> $Conn=mssql_connect('192.168.1.20','username','password')
or die("Could not connect to the mssql server");
> $ThisConnect=mssql_select_db('My_Database',$Conn)
or die("Could not select My_Database");
> $QueryString="select id, name from my_table";
> $Test=mssql_query($QueryString, $ThisConnect)
or die("Could query mssql server");
> Please help! Thanks.
> Dave
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.