��� ����� ��� ifx_htmltbl_result
ifx_htmltbl_result — Formats all rows of a query into a HTML table
Description
int ifx_htmltbl_result (int result_id [, string html_table_options])
Returns the number of rows fetched or FALSE on error.
Formats all rows of the result_id query into a html table. The optional second argument is a string of
= ifx_prepare ( «select * from emp where name like » . $name , $connid , IFX_SCROLL ); if (! $rid ) < /* . error . */ > $rowcount = ifx_affected_rows ( $rid ); if ( $rowcount > 1000 ) < printf ( «Too many rows in result set (%d)\n » , $rowcount ); die ( «Please restrict your query \n» ); > if (! ifx_do ( $rid )) < /* . error . */ > ifx_htmltbl_result ( $rid , «border=\»2\»» ); ��� ����� ��� ifx_htmltbl_result(PHP 3>= 3.0.3, PHP 4 , PHP 5) ifx_htmltbl_result — Formats all rows of a query into a HTML table Description int ifx_htmltbl_result ( int result_id [, string html_table_options] )
Returns the number of rows fetched or FALSE on error. Formats all rows of the result_id query into a HTML table. The optional second argument is a string of
���������, ������� ��������� �� ���� ���������, ������� ������������� ������ �������� ��� ����� ��� ifx_htmltbl_result�������� Informix ��� Online (ODS) 7.x, SE 7.x � Universal Server (IUS) 9.x ��������� � «functions/ifx.ec» � «functions/php3_ifx.h». � ������ ������ ��������� ��������� ODS 7.2 � ��������� ������� ���������, � ������ ���������� BLOB. ��������� IUS 9.1 ��������� ��������: ����� ���� ������ ��� ����, �� ��������� SLOBS ��� ��� � ������ ����������. ����� ���, ��� �� ��������� ������ «configure», ���������, ��� ���������� «INFORMIXDIR» �����������. ���������������� ������ �������������� ���������� � ���������� (include) ����������, ���� �� ��������� «configure —with_informix=yes». �� ������ �������������� ��� ����������, �������������� ���������� ��������� «IFX_LIBDIR», «IFX_LIBS» � «IFX_INCDIR». ������ ����� �������� �������������� ������ ������� Informix. �� ��������� ���������� ��������� ���������� «HAVE_IFX_IUS», ���� � ��� Informix ������ >= 9.00.
������� ������ (18 �������� 1998) ��������� ������������ select/insert/update ��� BLOB. BLOB� � ����� ������ ����������� �������������� ���������������� BLOB. ������ Select ���������� «blob ��������� ��� ��� �����. ��� ��������� ���������� ����������� ����������� �������� ��������� �����/������ ��� �������� insert/update ��� ��������� ������� «blob id’s» ������ ������, ��������� «ifx_create_blob(..);». ����� �������� ������������� BLOB � ������ � �������� ������� BLOB ������ ������� (?) � ������ �������. ��� updates/inserts �� ����������� ���������� BLOB, ��������� ifx_update_blob(. ). ��������� ������� BLOB ����� ��� �������� ����������������� �����������, ������� ����� �������������� � �� ����� ����������: ���������������� ���������� : ifx.textasvarchar ���������������� ���������� : ifx.byteasvarchar ������� ������� ���������� : ifx_textasvarchar(0) : ������������ ������������� BLOB ��� �������� select ��� ������� TEXT. ifx_byteasvarchar(0) : ������������ ������������� BLOB ��� �������� select ��� ������� BYTE. ifx_textasvarchar(1) : ���������� ������� TEXT ���, ��� ����� ��� VARCHAR, ��� ������������� �������������� BLOB ��� �������� select. ifx_byteasvarchar(1) : ���������� ������� BYTE ���, ��� ����� ��� VARCHAR, ��� ������������� �������������� BLOB ��� �������� select. ���������������� ���������� : ifx.blobinfile ������� ������� ���������� : ifx_blobinfile_mode(0) : ���������� ������� BYTE � ������, ������������� BLOB ��������� �������� ����������. ifx_blobinfile_mode(1) : ���������� ������� BBYTE � ����, �� �������������� BLOB — ��� ����� ���� �� �������������� ifx_text/byteasvarchar � 1, �� ������ ������������ ������� TEXT � BYTE � �������� select ��� ������� (�� �������� �������) ���� VARCHAR. � ��� ���, ��� ��� ������ � PHP3 «�������», ��� ���������� «�������� ������������». ������������ ������ ����� ��������� ���, ��� ������, �� ��������� �� ����������. ���� �� �������������� ifx_blobinfile � 1, ����������� ��� �����, ������������ ifx_get_blob(..) ��� ��������� ��������� ����������. �������, ��� � ���� ������ �� ������������ �� �������� ��������� ������, ��������� INFORMIX ��� ������� ����. ������ ����� ��������� ��� ������� ����� ��������� ����� ��� ������ ������� ���� BYTE. �������������� ��������� ������ ����������� � ���������� ��������� «blobdir», �� ��������� — «.» (������� ����������). ���-�� ����� putenv(blobdir=»tmpblob»); �������� �������� �������� ����������� ��������� ������ (����� ���� ����� ������ ���������� � «blb»).
����� ���� ���������� � ���������������� ���������� : ifx.charasvarchar : ���� ����������� � 1 , �� �������� ������� ����� ��������� �������������. ifx_connect��������int ifx_connect (string [ database ], string [ userid ], string [ password ]); ��� �������� ���������� ���������� ������������� ����������, ��� ������ — false. ifx_connect() ������������� ���������� � ������� Informix. ��� ��������� ����������� � ��� �� ���������� ������� ��������� �� ���������, �� ����� php3.ini: ���� — ifx.default_host (���� �� ����������, �� ���������� Informix ���������� ���������� ��������� $INFORMIXSERVER), ������������ — ifx.default_user, ������ — ifx.default_password (����� ���� �� ���������). � ������ ����������� ������ ������� ifx_connect() � ���� �� �����������, ����� ���������� ����������� �� �����, � ����������� ������������� ��� �������������� ����������.pened link ������ � ������� ����� ����������, ��� ������ ���������� ���������� �������, ���� ������ ��� �� ����� ������� ������ ������� ifx_close() . ������ ����� ifx_pconnect() , � ifx_close() .
|