PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_nullformat> <ifx_getsqlca
Last updated: Fri, 10 Oct 2008

view this page in

ifx_htmltbl_result

(No version information available, might be only in CVS)

ifx_htmltbl_resultクエリ結果の全行を HTML テーブルにフォーマットする

説明

int ifx_htmltbl_result ( resource $result_id [, string $html_table_options ] )

クエリ結果 result_id の全ての行を HTML テーブルにフォーマットします。

パラメータ

result_id

result_id is a valid resultid returned by ifx_query() or ifx_prepare() (select type queries only!).

html_table_options

このオプション引数は、<table> タグのオプションとする文字列です。

返り値

取得された行の数、あるいはエラーの場合に FALSE を返します。

例1 Informix 結果を HTML テーブルとして出力する

<?php
$rid 
ifx_prepare ("select * from emp where name like " $name,
                     
$connidIFX_SCROLL);
if (! 
$rid) {
    
/* ... error ... */
}
$rowcount ifx_affected_rows ($rid);
if (
$rowcount 1000) {
    
printf ("Too many rows in result set (%d)\n<br />"$rowcount);
    die (
"Please restrict your query<br />\n");
}
if (! 
ifx_do($rid)) {
    
/* ... error ... */
}

ifx_htmltbl_result ($rid"border=\"2\"");

ifx_free_result($rid);
?>



add a note add a note User Contributed Notes
ifx_htmltbl_result
There are no user contributed notes for this page.

ifx_nullformat> <ifx_getsqlca
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites