有值的,还是返回错误“[Microsoft][ODBC Microsoft Access Driver]非法地使用 null 指针 ”?
不好意思,是我自己的一个小错误 $sql写成了aql了 谢谢
突然发现你的sql串写错了 $aql="delete FROM announce where id='.$_GET[annid].'"; 应写作 $aql="delete FROM announce where id='".$_GET[annid]."'"; 或 $aql="delete FROM announce where id='$_GET[annid]'";记得access对数据类型检查的比较严格,如id为数值型,应写作 $aql="delete FROM announce where id=".$_GET[annid]; 或 $aql="delete FROM announce where id=$_GET[annid]";
$sql写成了aql了
谢谢
$aql="delete FROM announce where id='.$_GET[annid].'";
应写作
$aql="delete FROM announce where id='".$_GET[annid]."'";
或
$aql="delete FROM announce where id='$_GET[annid]'";记得access对数据类型检查的比较严格,如id为数值型,应写作
$aql="delete FROM announce where id=".$_GET[annid];
或
$aql="delete FROM announce where id=$_GET[annid]";