if (empty($result)) {echo "
没有查到哦
";}
else {
$numRows = mssql_num_rows($result);
echo "
月份 |
抄表数 |
";
while($row=mssql_fetch_array($result))
{
echo"";
echo""; echo $row[1]; echo" | ";
echo"$row[4] | ";
echo"
";
}
mssql_close($dbhandle);
}
没有效果,还是去查询,输出空的表格表头。
回复讨论(解决方案)
把empty($result)换成$result = "" 试试,之前好像碰到过这个问题
我已经知道了。谢谢。
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn