mysql_fetch_array()函數從結果集中取得一行作為關聯數組,或數字數組,或二者兼有返回根據從結果集取得的行生成的數組,如果沒有更多行則返回 false。
<code><span>while</span>(<span>$rows</span><span>=</span>mysql_fetch_array(<span>$result</span>)){ <span>...</span><span>...</span><span>...</span><span>...</span><span>.</span> } 注意一定不要把<span>$rows</span><span>=</span>mysql_fetch_array(<span>$result</span>)写在<span>while</span>外面,如果这样写: </code>