主题:错误不能解决,求救!(此问题已经解决)
<?php require "Conn.php";?>
<?php
function City1(){
$rs = new com("Adodb.Recordset");
$sqlrs = "Select * From [Province]";
$rs->Open($sqlrs,$conn,1,1);
return "<option value=''>所属省份</option>";
}
echo City1();
?>
错误信息:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> ADODB.Recordset<br/><b>Description:</b> 参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。' in F:\F_City.php:6 Stack trace: #0 F:\F_City.php(6): com->Open('Select * From [...', NULL, 1, 1) #1 F:\F_City.php(9): City1() #2 {main} thrown in F:\F_City.php on line 6
环境:xp+access+php+iis
为什么出错呢,ASP这样的写法是正确的,PHP不能用吗???
<?php
function City1(){
$rs = new com("Adodb.Recordset");
$sqlrs = "Select * From [Province]";
$rs->Open($sqlrs,$conn,1,1);
return "<option value=''>所属省份</option>";
}
echo City1();
?>
错误信息:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> ADODB.Recordset<br/><b>Description:</b> 参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。' in F:\F_City.php:6 Stack trace: #0 F:\F_City.php(6): com->Open('Select * From [...', NULL, 1, 1) #1 F:\F_City.php(9): City1() #2 {main} thrown in F:\F_City.php on line 6
环境:xp+access+php+iis
为什么出错呢,ASP这样的写法是正确的,PHP不能用吗???