PHP释放资源问题
初学php,请见谅怎么释放odbc的conn和rs呢代码如下,释放conn会出错?rs如何释放?$connstr="DRIVER={MicrosoftAccessDriv...
初学php,请见谅
怎么释放odbc的conn和rs呢
代码如下,释放conn会出错?rs如何释放?
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=D:\b.mdb";
$conn=odbc_connect($connstr,"","",1);
$rs= odbc_exec($conn,"select * from biao");
while($rss=odbc_fetch_array($rs)){
echo $rss["name"];
echo "<br/>";
}
odbc_close($conn) or die("错误"); 展开
怎么释放odbc的conn和rs呢
代码如下,释放conn会出错?rs如何释放?
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=D:\b.mdb";
$conn=odbc_connect($connstr,"","",1);
$rs= odbc_exec($conn,"select * from biao");
while($rss=odbc_fetch_array($rs)){
echo $rss["name"];
echo "<br/>";
}
odbc_close($conn) or die("错误"); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询