2011-05-26から1日間の記事一覧

結果リソースから値を返す pg_fetch_result

PHP

string pg_fetch_result ( resource $result , int $row , mixed $field )$row が y軸 / $field が x軸 で結果から値を 取得できるというイメージ パラメータ result pg_query(), pg_query_params() あるいは pg_execute() から返される PostgreSQL の クエ…

配列のサイズを取得する count()

PHP

pg_num_rows: 行数を返す

PHP

int pg_num_rows ( resource $result ) 詳細 http://www.phppro.jp/phpmanual/php/function.pg-num-rows.html