我一直在阅读关于mysql_fetch_*方法的文章。这是我从PHP.org网站上学到的。mysql_fetch_array — Fetch a result row as an associative array, a numeric array, or both看起来,mysql_fetch_array包含所有存在于
mysql_fetch_assoc,mysql_
好吧,所以我天生就害怕一切,MySQL+----+-----------------+------++----+---23 |+----+-----------------+------+$raw = mysql_query("SELECT * FROM example") or die(mysql_error());
$r
= "SELECT COUNT(t.id), SUM(t.num_replies) FROM threads AS t WHERE t.forum_id=$forum_id";
list($num_threads, $num_posts) = mysql_fetch_assoc($result);Notice: Undefined offset: