数据库能连接上,SQL语句抽出去执行正常,但是却报以下错误,请高手帮忙!
代码:
$connect=odbc_connect("Driver={SQL Server};Server=$dbServer;Database=$dbName",$dbUser,$dbPass);
 
$queryInsert1="select * from ".$table." where pid = '".$pid."' and sid = '".$sid."'"; 
var_dump($queryInsert1);//die;//打印queryIsert 
$queryInsert="insert into ".$table."(pid,sid,path) values ('".$pid."', '".$sid."', '".$path."')"; 
mssql_query($queryInsert1,$connect); 

var_dump($queryInsert);//die;//打印queryIsert 

mssql_query($queryInsert,$connect);   错误现像:
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Data: Upload completestring(64) "select * from vod.jqdistribute where pid = '3216' and sid = '19'"
SWF DEBUG: <br />
SWF DEBUG: <b>Warning</b>:  mssql_query(): supplied resource is not a valid MS SQL-Link resource in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>81</b><br />
SWF DEBUG: string(85) "insert into vod.jqdistribute(pid,sid,path) values ('3216', '19', 'ftp://10.10.10.13')"
SWF DEBUG: <br />
SWF DEBUG: <b>Warning</b>:  mssql_query(): supplied resource is not a valid MS SQL-Link resource in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>85</b><br />
SWF DEBUG: 
SWF DEBUG: