« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 14 for second row (0.002 sec.)
second (152), row (273)
PDOStatement::fetchColumn — 結果セットの次行から単一カラムを返す | PHP 8.3 12226
PDOStatement::fetchColumn (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.9.0) PDOStatement::fetchColumn — 結果セットの次行から単一カラムを返す 説明 public function PDOStatement::fetchColumn ( int $column = 0 ): mixed 結果セットの次行から単一カ ... h = $dbh -> prepare ( "SELECT name, colour FROM fruit" ); $sth -> execute (); print "Fetch the first column from the first row in the result set:\n" ; $result = $sth -> fetchColumn (); print "name = $result \n" ; print "Fetch the second column from ... the second row in the result set:\n" ; $result = $sth -> fetchColumn ( 1 ); print "colour = $result \n" ; ?> 上の例の出力は以下となり ... ます。 Fetch the first column from the first row in the result set: name = lemon Fetch the second column from the second row in the result set: colour = red 参考 PDO::quer ...
https://man.mtool.work/php/8.3/pdostatement.fetchcolumn.html
cubrid_next_result — Get result of next query when executing multiple SQL state... 11346
cubrid_next_result (PECL CUBRID >= 8.4.0) cubrid_next_result — Get result of next query when executing multiple SQL statements 説明 function cubrid_next_result ( resource $result ): bool The cubrid_next_result() function is used to get resu ... lt_info ( $res ); function get_result_info ( $req ) { printf ( "\n------------ get_result_info --------------------\n" ); $row_num = cubrid_num_rows ( $req ); $col_num = cubrid_num_cols ( $req ); $column_name_list = cubrid_column_names ( $req ); $co ... en = cubrid_field_len ( $req , $col_num - 1 ); $column_1_flags = cubrid_field_flags ( $req , 1 ); printf ( "%-30s %d\n" , "Row count:" , $row_num ); printf ( "%-30s %d\n" , "Column count:" , $col_num ); printf ( "\n" ); printf ( "%-30s %-30s %-15s\n ... mn Type:" , $column_last_type ); printf ( "%-30s %d\n" , "Last Column Len:" , $column_last_len ); printf ( "%-30s %s\n" , "Second Column Flags:" , $column_1_flags ); printf ( "\n\n" ); } ?> 上の例の出力は以下となります。 ------------ get_result_info -- ...
https://man.mtool.work/php/8.3/function.cubrid-next-result.html
pg_fetch_result — 結果インスタンスから値を返す | PHP 8.3 11269
pg_fetch_result (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_fetch_result — 結果インスタンスから値を返す 説明 function pg_fetch_result ( PgSql\Result $result , string | false | null $row , mixed $field ): string | false | null function pg_fetch ... g_query() 、 pg_query_params() や (様々な関数がありますが、特に) pg_execute() が返した PgSql\Result クラスのインスタンス。 row 結果から取得する行の番号。行番号は 0 から始まります。指定しなかった 場合は、次の行が読み込まれます。 field 取得するフィール ... ォーマットされた形式で返します。これは psql プログラムの出力と同じ形式です。データベースの NULL 値は、 null として返します。 row が結果の行数より大きい場合、 あるいはそれ以外のエラーが発生した場合は false を返します。 変更履歴 バージョン 説明 8.4.0 pg ... $res = pg_query ( $db , "SELECT 1 UNION ALL SELECT 2" ); $val = pg_fetch_result ( $res , 1 , 0 ); echo "First field in the second row is: " , $val , "\n" ; ?> 上の例の出力は以下となります。 First field in the second row is: 2 参考 pg_query() - クエリを ...
https://man.mtool.work/php/8.3/function.pg-fetch-result.html
db2_bind_param — PHP 変数を SQL 文のパラメータにバインドする | PHP 8.3 11124
db2_bind_param (PECL ibm_db2 >= 1.0.0) db2_bind_param — PHP 変数を SQL 文のパラメータにバインドする 説明 function db2_bind_param ( resource $stmt , int $parameter_number , string $variable_name , int $parameter_type = DB2_PARAM_IN , int $da ... db2_bind_param() をコールした後で変数を宣言することも可能です $upper_limit = 15.0 ; if ( db2_execute ( $stmt )) { while ( $row = db2_fetch_array ( $stmt )) { print " { $row [ 0 ]} , { $row [ 1 ]} , { $row [ 2 ]} \n" ; } } ?> 上の例の出力は以下となり ... ?, ?)' ; $conn = db2_connect ( $database , $user , $password ); $stmt = db2_prepare ( $conn , $sql ); $name = "Peaches" ; $second_name = "Rickety Ride" ; $weight = 0 ; db2_bind_param ( $stmt , 1 , "name" , DB2_PARAM_IN ); db2_bind_param ( $stmt , 2 , " ... b2_bind_param ( $stmt , 3 , "weight" , DB2_PARAM_OUT ); print "コール前のバインド変数の値:\n" ; print " 1: { $name } 2: { $second_name } 3: { $weight } \n\n" ; if ( db2_execute ( $stmt )) { print "コール後のバインド変数の値:\n" ; print " 1: { $name } 2 ...
https://man.mtool.work/php/8.3/function.db2-bind-param.html
cubrid_execute — Execute a prepared SQL statement | PHP 8.3 10342
cubrid_execute (PECL CUBRID >= 8.3.0) cubrid_execute — Execute a prepared SQL statement 説明 function cubrid_execute ( resource $conn_identifier , string $sql , int $option = 0 ): resource function cubrid_execute ( resource $request_identif ... ccessful query executions are not rolled back when an error occurs. If a query is executed successfully, the result of the second query can be obtained using cubrid_next_result() . If the first argument is request_identifier to execute the cubrid_prepa ... $result = cubrid_execute ( $conn , "SELECT code FROM event WHERE name='100m Butterfly' and gender='M'" , CUBRID_ASYNC ); $row = cubrid_fetch_array ( $result , CUBRID_ASSOC ); $event_code = $row [ "code" ]; cubrid_close_request ( $result ); $history ... brid_execute ( $history_req ); printf ( "%-20s %-9s %-10s %-5s\n" , "athlete" , "host_year" , "score" , "unit" ); while ( $row = cubrid_fetch_array ( $history_req , CUBRID_ASSOC )) { printf ( "%-20s %-9s %-10s %-5s\n" , $row [ "athlete" ], $row [ "h ...
https://man.mtool.work/php/8.3/function.cubrid-execute.html
ImagickPixelIterator::setIteratorRow — pixel iterator の行を設定する | PHP 8.3 10262
ImagickPixelIterator::setIteratorRow (PECL imagick 2, PECL imagick 3) ImagickPixelIterator::setIteratorRow — pixel iterator の行を設定する 説明 public function ImagickPixelIterator::setIteratorRow ( int $row ): bool 警告 この関数は、 現在の ... ところ詳細な情報はありません。引数のリストのみが 記述されています。 pixel iterator の行を設定します。 パラメータ row 戻り値 成功した場合に true を返します。 例 例1 ImagickPixelIterator::setIteratorRow() <?php function setIteratorRow ( $ima ... magick -> getPixelRegionIterator ( 200 , 100 , 200 , 200 ); for ( $x = 0 ; $x < 20 ; $x ++) { $imageIterator -> setIteratorRow ( $x * 5 ); $pixels = $imageIterator -> getCurrentIteratorRow (); /* Loop through the pixels in the row (columns) */ forea ... ch ( $pixels as $pixel ) { /** @var $pixel \ImagickPixel */ /* Paint every second pixel black*/ $pixel -> setColor ( "rgba(0, 0, 0, 0)" ); } /* Sync the iterator, this is important to do on each iteration ...
https://man.mtool.work/php/8.3/imagickpixeliterator.setiteratorrow.html
pg_free_result — クエリ結果のメモリを解放する | PHP 8.3 10246
pg_free_result (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_free_result — クエリ結果のメモリを解放する 説明 function pg_free_result ( PgSql\Result $result ): bool pg_free_result() は、指定された クエリ結果 PgSql\Result インスタンスに関するメモリ ... $res = pg_query ( $db , "SELECT 1 UNION ALL SELECT 2" ); $val = pg_fetch_result ( $res , 1 , 0 ); echo "First field in the second row is: " , $val , "\n" ; pg_free_result ( $res ); ?> 上の例の出力は以下となります。 First field in the second row is: 2 参 ...
https://man.mtool.work/php/8.3/function.pg-free-result.html
Imagick::getPixelIterator — MagickPixelIterator を返す | PHP 8.3 10024
Imagick::getPixelIterator (PECL imagick 2, PECL imagick 3) Imagick::getPixelIterator — MagickPixelIterator を返す 説明 public function Imagick::getPixelIterator (): ImagickPixelIterator MagickPixelIterator を返します。 パラメータ この関数に ... = new \Imagick ( realpath ( $imagePath )); $imageIterator = $imagick -> getPixelIterator (); foreach ( $imageIterator as $row => $pixels ) { /* Loop through pixel rows */ foreach ( $pixels as $column => $pixel ) { /* Loop through the pixels in the ... olumns) */ /** @var $pixel \ImagickPixel */ if ( $column % 2 ) { $pixel -> setColor ( "rgba(0, 0, 0, 0)" ); /* Paint every second pixel black*/ } } $imageIterator -> syncIterator (); /* Sync the iterator, this is important to do on each iteration */ } ...
https://man.mtool.work/php/8.3/imagick.getpixeliterator.html
mysqli_result::fetch_column — 結果セットの次の行から、単一のカラムの値を取得す... 9635
mysqli_result::fetch_column mysqli_fetch_column (PHP 8 >= 8.1.0) mysqli_result::fetch_column -- mysqli_fetch_column — 結果セットの次の行から、単一のカラムの値を取得する 説明 オブジェクト指向型 public function mysqli_result::fetch_column ( i ... ryCode, Name FROM City ORDER BY ID DESC LIMIT 5" ; $result = $mysqli -> query ( $query ); /* fetch a single value from the second column */ while ( $Name = $result -> fetch_column ( 1 )) { printf ( "%s\n" , $Name ); } 手続き型 <?php mysqli_report ( MYS ... , Name FROM City ORDER BY ID DESC LIMIT 5" ; $result = mysqli_query ( $mysqli , $query ); /* fetch a single value from the second column */ while ( $Name = mysqli_fetch_column ( $result , 1 )) { printf ( "%s\n" , $Name ); } 上の例の出力は、 たとえば以下 ... 果セットの次の行を連想配列で取得する mysqli_fetch_object() - 結果セットの次の行を取得し、オブジェクトとして返す mysqli_fetch_row() - 結果セットの次の行を数値添字配列で取得する mysqli_data_seek() - 結果の任意の行にポインタを移動する 他のマニュアルの関連 ...
https://man.mtool.work/php/8.3/mysqli-result.fetch-column.html
ImagickPixelIterator::clear — PixelIterator に関連付けられたリソースを消去する ... 9502
ImagickPixelIterator::clear (PECL imagick 2, PECL imagick 3) ImagickPixelIterator::clear — PixelIterator に関連付けられたリソースを消去する 説明 public function ImagickPixelIterator::clear (): bool 警告 この関数は、 現在のところ詳細な情報は ... path ( $imagePath )); $imageIterator = $imagick -> getPixelRegionIterator ( 100 , 100 , 250 , 200 ); /* Loop through pixel rows */ foreach ( $imageIterator as $pixels ) { /** @var $pixel \ImagickPixel */ /* Loop through the pixels in the row (column ... s) */ foreach ( $pixels as $column => $pixel ) { if ( $column % 2 ) { /* Paint every second pixel black*/ $pixel -> setColor ( "rgba(0, 0, 0, 0)" ); } } /* Sync the iterator, this is important to do on each iterati ...
https://man.mtool.work/php/8.3/imagickpixeliterator.clear.html
PREV 1 2 NEXT