を実行したときの効率この方法は他の方法と比較して効率的ですか?結果セットを実行しているときに結果セット
for ($iCont=0; $iCont < mysql_num_rows($this->rsQuery); $iCont++)
{
mysql_data_seek($this->rsQuery,$iCont);
$row=mysql_fetch_assoc($this->rsQuery);
//more things here like write row or push it to a global array
}
mysql_data_seekが順序付けられた順序で実行されても、効率の問題はありますか?
冒頭のmysql_num_rows()はどうですか?影響はありますか?
もっと良いアプローチがありますか?
私が実装したいのは、すべての結果セットの内容を持つ連想配列を返すメソッドと、データを含むグリッド(htmlテーブル)を作成する別のメソッドです。
while($row = mysql_fetch_assoc($this->rsQuery)) {
// ...
}