我有一个非常简单的布局将会和我的生活,我不能明白,为什么这个没有返回值:MySQL查询心不是返回结果
<?php
// Gets A List Of Comic Arcs
$result = mysql_query("SELECT * FROM ".$db_tbl_comics." GROUP BY ".$db_fld_comics_arc." ORDER BY ".$db_fld_comics_date." DESC LIMIT 20");
while ($comic = mysql_fetch_array($result)) {
// Now Go Back And Count Issues For Each Comic Arc Above
$result22 = mysql_query("SELECT * FROM ".$db_tbl_comics." WHERE ".$db_fld_comics_arc."=".$comic[$db_fld_comics_arc]);
$total_issues = mysql_num_rows($result22);
echo $total_issues;
}
?>
没有其他查询refered为$ result22。
$ comic []已在上一个查询中定义。
echo mysql_error($result22);
返回没有错误。
让我知道你是否需要任何其他信息。
螨帮助,如果你回显错误http://php.net/manual/en/function.mysql-error.php – 1ftw1 2011-12-20 01:05:06
我做了没有错误,抱歉忘了提及。 – rackemup420 2011-12-20 01:07:39
您是否尝试过“回显”查询并直接在数据库中进行测试以查看它是否实际返回了某些内容?数据库中的 – 2011-12-20 01:10:30