������ 5. �������������� � ������ ������ ODBC � ���������� � ��������� ������� ��������� ODBC, ������ ������ ������� . �
msql_result. ��������� �������� ������ ������� int msql_result (int query_identifier, int row, mixed field) ���������� ���������� ������ �� ������ ������� query_identifier. � ��������� row ����������� ����� ������ (��������� ���������� � 0), � ���������
field ����� ������� ������ ���� (�����), ��� ���� ��� ������ ��� ���� (����:
����_�������.���_�����) ��� ����� ����.
��� ������ � �������� �������� ������� ����� ������ ����������� ������� ���� _fetch_ (��. ����). ����� ��������, ��� ��������� ������� �������������� ������� ���������.
�� ������� �������� ������� msql_result() � ��������� � ������� ��������� ��������� ������ �������.
������������� ������������ �������������� �������: msql_fetch_row(), msql_fetch_array(), � msql_fetch_object().
msql_data_seek. ����������� ������� ������ ������� int msql_data_seek (int query_identifier, int row_number) ��� ������ ������ ������� msql_fetch_row() (��� ��������), ���������� ������ ������ ��������� �� ���������. ������ ������� ��������� �������� ���������� ������ � ������ ������� query_identifier, ���, ����� �� �������� �� ������ � ������� row_number (��������� ���������� � 0).
��� ���������� true, ��� false ��� ������.
��. �����: msql_fetch_row().
msql_fetch_array. ��������� ������ � ������ int msql_fetch_array (int query_identifier [, int result_type]) ���������� ������, ��������������� ������� ������, �� ������ ������� query_identifier, ������������ ��������; ��� false ������� ����� �� �������.
������ ������� �������� ����������� ������� msql_fetch_row(), � ��� ����� ���������� ������������ ��� ������������� ������ (��� ������������). ��� ������������� ������� ����� ����������� � ��������� result_type ����� �� ��������: MYSQL_NUM, MYSQL_ASSOC, MYSQL_BOTH (�� ���������).
� ������������� �������� ��������� ������ ����� �����. ���� ������� ����������� ����, ������������ ���������. ��� ������� � ����������� ����� ����� ����� ������������ �������� ������� (���� ���������� � ��� ������������������, � ������� ������� � ������� ��� � �������) ��� ������.
��������, ��� ������� �� ����������� ���������, ��� mysql_fetch_row(), �� ������������� �������������� ����������������.
������ ����������� � ���������� ������� ���������� ������������ ����, ������� �������� 0 (��� ������ ������, ��� NULL).
��. �����: msql_fetch_row().
msql_fetch_row. ��������� ������ � ������������ ������ array msql_fetch_row (int query_identifier) ���������� ������, ��������������� ������� ������, �� ������ ������� query_identifier, ������������ �������� (����������� ����� ������� ���������� ��������� ������); ��� false ������� ����� �� �������.
������ ���� ������ ����������� � ������������ �������� �������, (��������� ���������� � 0).
��. �����: msql_fetch_array(), msql_fetch_object(), msql_data_seek(), � msql_result().
msql_fetch_object. ��������� ������ � ��������� ������� int msql_fetch_object (int query_identifier [, int result_type]) ���������� ������, � ��������� �������� ��������� ���� ������� ������; ��� false ������� ����� �� �������.
�� �������� ������� ��������� mysql_fetch_array(), � ����� ��������� mysql_fetch_row().
��. �����: msql_fetch_array() � msql_fetch_row().
msql_fetch_field. ��������� ���������� � ���� ������ � ��������� ������� object msql_fetch_field (int query_identifier, int field_offset) ���� ����� ���� field_offset �� ������, ��� ������ ������ ������� ������������ �������� ���������� ���� �� ������ ������� query_identifier.
������������ ������ ����� ��������� �������� (� �������� ����������):
name � ��� ���� table � ��� �������, ������� ����������� ���� not_null � 1, ���� ���� ��������� ������ �������� primary_key � 1, ���� ���� �������� �������� unique_key � 1, ���� � ���� ����������� ������ ���������� �������� type � ��� ���� ��. �����: msql_field_seek().
msql_field_seek. ����������� � ���������� ���� int msql_field_seek (int query_identifier, int field_offset) ����������� ����� msql_fetch_field() (���� � ��� �� ������ ����� ����) ����� ���������� ���������� � ���� � ��������� ������� field_offset.
��. �����: msql_fetch_field().
msql_fieldtable. ��������� ����� �������, ������� ����������� ���� �� ������ ������� int msql_fieldtable (int query_identifier, int field) msql_fieldtype. ��������� ���� ���� ������ ������� string msql_fieldtype (int query_identifier, int i) ������������ ������ �������� �������� ���� ����: �int�, �real�, �string�, �blob�, ��� �������, ���������� � ������������.
msql_fieldflags. ��������� ����� ���� ������ string msql_fieldflags (int query_identifier, int i) ���� ������� � mSQL ����� ����� ��� �����: �not_null�, �primary_key�.
������� ���������� ������������ ����� ������ ������, ��������� � ���� � �������� i (��������� ���������� � 0) � ������ ������� query_identifier.
(��������� ���������� ������ �� ������������ ����� �������� explode()).
���� ���� ������ �� �����, ������������ ������ ������.
msql_fieldlen. ��������� ������� ���� ������ ������� int msql_fieldlen (int query_identifier, int i) msql_free_result. ����������� ������ ������� int msql_free_result (int query_identifier) ������� ����������� ������, ���������� ������� ������� query_identifier, ������������ ��������.
msql_list_fields. ��������� ������������ ����� � ���������� ������� int msql_list_fields (string database, string tablename) ������� ���������� ������ ����� ������� ������� tablename �� �� database, ������� ����� ������������ ��� ��������� ���������� � ���� �����, ��������� � �������, � ������� �������: msql_fetch_field() msql_field_flags(), mysql_field_len(), mysql_field_name(), � mysql_field_type().
��������, ��� ������ ������������ �1, � ����� � ���������� $phperrmsg ����������� ��������� �� ������, � (���� ������� �� ���� ������� � ���������� @, ��) ��������������� ��������� �� ������.
��. �����: msql_error().
msql_error. ��������� ��������� �� ������ ��������� ������� msql string msql_error () ���������� ��������� �� ������, ������������ � ���� ���������� ��������� ������� mSQL, ��� ������ ������, ���� ������ �� ���������. ����� ������, ������������ ��� ��������� � MySQL, ���������� � ���� ��������������, �� ������ ������������� ������ ����� �������� ��������������.
PostgreSQL Postgres, ���������� ������������� � UC Berkeley Computer Science Department, ������� ����� �� ������ �� ������������ ��������-����������� ��������, ��������� ������ � ��������� ������������ ��. ��� ������������ ���� SQL92/SQL3, ����������, � ���������� �����. PostgreSQL ���������������� ��������� � � �������� �����. ��.: http://www.postgresql.org/.
������� � ������ 6.3 (03/02/1998) PostgreSQL ���������� ������ unix-������� (����� ������ ������������ � ���� /tmp/.s.PGSQL.5432). ����� � ������� ����� ���� ������������ ����� TCP/IP, postmaster ���������� ��������� � ������ ‘-i’ (�������� ����������: �listen on TCP/IP sockets as well as Unix domain sockets�).
����� � ������� ����������� ��������� ����������� � ��������� ����������, �� ������ ��� ����������� � ���� ������:
$conn = pg_Connect(«host=myHost port=myPort tty=myTTY options=myOptions user=myUser password=myPassword dbname=myDB»);
��� ������������� ������� ���������� ������� �������� �� ���������� �������� ������ ������ ����������. ���� ���������� ���������� � ������� begin � ����������� ��������� commit ��� end. ������ ���������� ����������� ��������� rollback ��� abort.
pg_connect. ����������� � ������� PostgreSQL int pg_connect (string conn_string) ���������� ���������� ����������� � �� (������������ ������������ ���������), ��� false ��� ������.
� ��������� ����������� ����� �����������:
host, port, tty, options, user, password, dbname.
���������� ���������:
$conn = pg_connect («host», «port», «options», «tty», «dbname»).
��. �����: pg_pconnect().
pg_close. �������� ����������� bool pg_close (int connection) ��������� ��������� ����������� � ���������� true (��� false ��� ������).
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������.
��������, ���������� �����������, ��������� �������� pg_pconnect() �� �����������.
pg_pconnect. �������� ����������� ����������� � ������� PostgreSQL int pg_pconnect (string conn_string) ���������� ���������� ����������� ����������� � �� (������������ ������������ ���������), ��� false ��� ������. � ��������� ����������� ����� �����������: host, port, tty, options, user, password, dbname.
��������, ���������� ����������� �� ����������� ��� ���������� ������� � �������� ��������������� ���� PHP �������� � ������ (���, ��� ��� ��������� ������� ������� ���������� ���������� �����������, ������������ ��� ���������).
���������� ���������:
$conn = pg_pconnect («host», «port», «options», «tty», «dbname»).
��. �����: pg_connect().
pg_host. ��������� ����� ������� � �������� ������������ ����������� string pg_host (int connection_id) ���������� �������� ����� host, ��������� ��� �����������.
pg_port. ��������� ������ ����� ������������� ������������ int pg_port (int connection_id) ���������� �������� ����� port, ��������� ��� ����������� (��� �5432�).
pg_tty. ��������� ����� ��������� TTY ������������ ����������� string pg_tty (int connection_id) ���������� ��� ������ ������ � ������� ������ ���������� ���������� ���������� ��� ���������� �����������.
pg_options. ��������� ����� ����������� string pg_options (int connection_id) pg_dbname. ��������� ����� ������������ �� string pg_dbname (int connection) ��� ������ ���������� false.
pg_set_client_encoding. ��������� ��������� ������������ �������� int pg_set_client_encoding ([int connection, string encoding])
���������� 0, ��� -1 ��� ������. encoding ����� ��������� ��������:
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL, LATINX (X=1. 9), KOI8, WIN, ALT, SJIS, BIG5, WIN1250.
������� ������� PostgreSQL-7.0 ��� ������.
����� ������� ���������� pg_setclientencoding().
��. �����: pg_client_encoding().
pg_client_encoding. ��������� ��������� ������������ �������� string pg_client_encoding ([int connection])
������������ ���� �� ��������:
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL, LATINX (X=1. 9), KOI8, WIN, ALT, SJIS, BIG5, WIN1250.
������� ������� PostgreSQL-7.0 ��� ������.
����� ������� ���������� pg_clientencoding().
��. �����: pg_set_client_encoding().
pg_trace. ���������� ����������� ����������� bool pg_trace (string filename [, string mode [, int connection]]) ������� ��������� �������������� ������ ������ ����������� ����� �������� PostgreSQL � ��� ���������� ������ � ���� ������� filename. ����� ������������ ��� ����������� ���������� �������� ���������� �������� ������������ PostgreSQL. � ���������� ������, ������� ������, ���������� � ���� ����� ����� ���� ������� � ������� �������: grep ‘^To backend’ trace.log.
��������� filename � mode �� ��, ��� � � ������� fopen() (mode �� ��.: ‘w’), connection ���������, ����� ����������� ������� ������������ (���� �� �������, �� ������������ ��������� ��������).
���������� true ���� filename ������� ������, ��� false ��� ������.
��. �����: fopen() � pg_untrace().
pg_untrace. ������ ����������� ����������� bool pg_untrace ([int connection]) ������������� �������, ������� �������� pg_trace(). �������� connection ���������, ����� ����������� ������� ������������ (���� �� �������, �� ������������ ��������� ��������). ������ ���������� TRUE.
��. �����: pg_trace().
pg_exec. ���������� ������� int pg_exec (int connection, string query) �������� ������ query, ��� ����������� connection.
���� ��� ��� ���������� ������� ��������� ������, �� ������� ���������� FALSE. �������� ����������� ������ ����� �������� pg_errormessage().
���� ������ ������� ����������, �� ������������ ����� �������, ������� ����� ���� ��������� ���������:
pg_result() � �������� ������� ������ ������� pg_fetch_array() � ������� ������ � ������ pg_fetch_row() � ������� ������ � ������������ ������ pg_fetch_object() � ������� ������ � ������ ����� ��������, ������� ������� ���� ���������� �������� SELECT, ����������� ������� pg_num_rows(); � ����� �������� ������� ������� ���� �������� � ���������� ���������� �������� DELETE, INSERT, REPLACE, ��� UPDATE, ����������� ������� pg_cmdtuples().
����� ��������� ����������� �������, �� ����� ���� ������ �������� pg_free_result(). ���� � ���� ��� �������������, ��� ��� ������� ������������� ������������� ��� ���������� �������.
pg_put_line. ��������� ������� ������ bool pg_put_line ([resource connection_id, string data]) ��� ��������� ��������� ��������� ���������� � �� PostgreSQL ��������� ����� ���������������� ��������� ����� ����� ����� ����� ������. ���������� true, ��� false ��� ������.
����� ������ (������ ��) ����������� �������� «\n�, � ���� ����������� ������ ��������� «\t�. ���������� ������ ���� ������� ���� �������� «\.» ��� ��������, ��� ������ �������� �������� ������.
��. �����: pg_end_copy().
pg_end_copy. ������������� �������� ������� bool pg_end_copy ([resource connection]) ������� ������� ��������, ����� ���� ��� �������� pg_put_line() ��������� �������� ������ ������� PostgreSQL (��� ���� ����� ������������� ���������� ������). ���������� true, ��� false ��� ������.
��. �����: pg_put_line().
pg_numrows. ��������� ����� ������������ ������� int pg_numrows (int result_id) ���������� ����� �������, ������������ ��������� SELECT. ���������� ������ ������������ ������� (�������� result_id) ������ ���� ������� �� ������� pg_exec(). ����������.
pg_numfields. ��������� ����� ����� � ������ ������� int pg_numfields (int result_id) ���������� ����� ����� (��������) � ������ �������, ������������ �������� pg_exec(); ��� -1 ��� ������.
pg_cmdtuples. ��������� ����� ���������� ������� � �� int pg_cmdtuples (int result_id) ������������ ����� ������� (���������), ���������� � ���������� ���������� �������� DELETE, INSERT, REPLACE, ��� UPDATE. ���� ��������� ����������� �� ���� ���������� 0.
pg_freeresult. ����������� ������ ������� int pg_freeresult (int result_id) ������� ����������� ������, ���������� ������� ������� result_id, ������������ ��������. �� ������� ������������ ������, ���� ��������� ��������� ������, ��� ��� ������ ������������� ������������� ��� ���������� �������.
pg_result. ��������� ������������� �������� ������ ������� mixed pg_result (int result_id, int row_number, mixed fieldname) ������� ���������� �������� �� ������ �������, ������������� �������� pg_Exec(). ��������� row_number � fieldname ��������� �������������� ����� ������ (������) � ���� (�������). ��������� ���������� �� 0. ���� ����� ��������� ��� ������ ��� �������.
PostgreSQL ����� ����� ���������� ����� ������ � PHP �������������� ������ ��������. ���� integer, boolean � oid ������������ ��� ������������� ��������.
��� ����� float, � real ����� ������������ ��� ������� ��������. ��� ��������� ���� (������� �������) ������������ � ���� ����� � ��� �� �������, ��� � � ��������� psql.
pg_fetch_array. ��������� ������ � ������ array pg_fetch_array (int result, int row [, int result_type]) ���������� ������, ��������������� ������ � ������� row, �� ������ ������� result, ������������ ��������; ��� false ���� ����� ������ �� ������� (����� �������� ��������������).
������ ������� �������� ����������� ������� pg_fetch_row(), � ��� ����� ���������� ������������ ��� ������������� ������ (��� ������������). ��� ������������� ������� ����� ����������� � ��������� result_type ����� �� ��������: PGSQL_NUM, PGSQL_ASSOC, PGSQL_BOTH (�� ���������).
� ������������� �������� ��������� ������ ����� ����� (��� ������ � ������ ��������).
��������, ��� ������� �� ����������� ���������, ��� pg_fetch_row(), �� ������������� �������������� ����������������.
��. �����: pg_fetch_row() pg_fetch_row. ��������� ������ � ������������ ������ array pg_fetch_row (int result, int row) ���������� ������, ��������������� ������ � ������� row, �� ������ ������� result, ������������ ��������; ��� false ���� ����� ������ �� �������.
��. �����: pg_fetch_array(), pg_fetch_object(), pg_result().
pg_fetch_object. ��������� ������ � ��������� ������� object pg_fetch_object (int result, int row [, int result_type]) ���������� ������, � ��������� �������� ��������� ���� ������� ������; ��� false ������� ����� �� �������.
�� �������� ������� ��������� pg_fetch_array(), � ����� ��������� pg_fetch_row().
H1Failed connecting to postgres database /H1 PRE ��. �����: pg_fetch_array() � pg_fetch_row().
pg_fieldname. ����������� ����� ���� string pg_fieldname (int result_id, int field_number) ���������� ��� ���� �� ��� ������ � ������ �������. ��������� ���������� � 0.
pg_fieldnum. ����������� ������ ���� int pg_fieldnum (int result_id, string field_name) ���������� ����� ���� � ������ ������� �� ��� �����; ��� �1 ��� ������.
pg_fieldtype. ����������� ���� ���� string pg_fieldtype (int result_id, int field_number) pg_fieldprtlen. ����� �������� � ���� int pg_fieldprtlen (int result_id, int row_number, string field_name) ���������� ����������� ����� ������������� � ���� �������� � ������ (����� ��������. ���������� �1 ��� ������.
pg_fieldsize. ���������� ������ ���� int pg_fieldsize (int result_id, int field_number) ���������� ������ � ������, ��� �������� �1 ��� ����� ���������� �����. ��� ������ ������������ false.
pg_fieldisnull. ����� �� �������� ���� NULL?
int pg_fieldisnull (int result_id, int row, mixed field) ���������� 0, ���� ���� field � ������ row �� �������� �������� NULL; ��� 1, � ��������� ������. ���� ����� ���� ������� ������ ��� �������.
pg_getlastoid. ��������� �������������� ���������� ������� int pg_getlastoid (int result_id) ������������ ��� ��������� oid ������������ ������������ �������, ��������� SQL �������� INSERT � ������� pg_exec(). ���������� ������������� �������� oid; ��� -1 ���� ��������� ������� � pg_exec() �� ���� INSERT.
pg_locreate. �������� �������� ������� int pg_locreate (int conn) ������� �Inversion Large Object� � ���������� ��� oid. conn �������� ���������� �����������. ������ ������� PostgreSQL: INV_READ, INV_WRITE, � INV_ARCHIVE �� ��������������, ������ ������ ��������� � �������� ��� ������ � ������. INV_ARCHIVE ��� ������ �� ������ PostgreSQL (��� ������ 6.3 � ������).
pg_loopen. �������� �������� ������� int pg_loopen (int conn, int objoid, string mode) ��������� �Inversion Large Object� � ���������� ��� �������� ����������.
�������� objoid ��������� �������������� oid (������������� �������), � mode ����� �������, ������� ����� ��������� ��������: �r�, �w�, ��� �rw�.
�� ���������� �����������, �� ������ �������������� ������� ������.
pg_loclose. �������� �������� ������� void pg_loclose (int fd) � ��������� fd ����������� ���������� �������, ���������� �� pg_loopen().
pg_loimport. ������ �������� ������� �� ����� int pg_loimport (int file [, int connection_id]) ��� �������������� ����� (����) ����������� � ��������� filename. ���������� ������������� ���������� ������� (oid), ��� FALSE ��� ������. �� ���������, ��� ������ � �������� ��������� ������ ��������� ������ ����������.
pg_loexport. ������� �������� ������� � ���� bool pg_loexport (int oid, int file [, int connection_id]) ��� ����� (����) ����������� � ��������� filename, � ������������� ������� � oid. ���������� true, ��� false ��� ������. �� ���������, ��� ������ � �������� ��������� ������ ��������� ������ ����������.
pg_loread. ������ �������� ������� string pg_loread (int fd, int len) ���������� ������, ����������� �� ������� ��������� ��� ������������ fd. � ��������� len ����������� ������������ ����� ������������ ������.
pg_loreadall. �������� �������� ������� � ������� ��� ����������� ��������������� � ����� ������ (��������) void pg_loreadall (int fd) ������������ � �������� ��� ������ �������� ������ (������� � �����).
pg_lowrite. ������ �������� ������� int pg_lowrite (int fd, string buf) ���������� ������ �� ������ buf � ������, ��������� ������������ fd; � ���������� ����� ���������� ���������� ����, ��� false ��� ������.
pg_lounlink. �������� �������� ������� void pg_lounlink (int conn, int lobjid) pg_errormessage. ��������� ���������� ��������� �� ������ string pg_errormessage (int connection) Microsoft SQL Server ����� ��� ������� � Microsoft SQL 6.5 � 7.0 �������������� ������ ������, �� ��� ���������� � ����.
mssql_connect. ����������� � ������� MS SQL int mssql_connect ([string servername [, string username [, string password]]]) ���������� ���������� ����������� � ������� MS SQL, ��� false ��� ������.
�������� servername ������ ���� �������������� ������, ������������ � ����� ‘interfaces’.
���� ������� �������� ���������� � ���� �� �����������, ����� ����������� �� ���������, � ������������ ������������� ����������.
����������� � ������� ����������� ��� ���������� ������� ��� �����, ���� ���� ���������� ������� mssql_close().
��. �����: mssql_pconnect(), mssql_close().
mssql_close. �������� ����������� � MS SQL Server int mssql_close ([int link_identifier]) ���������� true, ��� false ��� ������.
������������� ������������ ����������� ����������� � ���������, ���� ��� �� ���������, �� ����������� ���������, �������� ������ �������� �����������.
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������. ��������, ���������� �����������, ��������� �������� mssql_pconnect() �� �����������.
��. �����: mssql_connect(), mssql_pconnect().
mssql_pconnect. �������� ����������� ����������� � ������� MS SQL int mssql_pconnect ([string servername [, string username [, string password]]]) ���������� ���������� ����������� �����������, ��� false ��� ������.
Mssql_pconnect() ��������� ������� Mssql_connect() � ����� ����������:
����� ������������, ������� �������� ��������� ������� �� ��� �������� (����������) ����������� � ����������� (��� �������, ������������ � ������), ������������ ���������. ���� ����� ����������� ��������������, �� ������������ ��� �������������, ������ �������� ������ �����������.
��� ���������� �������, ����������� �� �����������, � �������� �������������� ��� ����������� �������������. (������� mssql_close() �� ����� ������� �����������, ��������� � ������� mssql_pconnect()).
mssql_select_db. ����� �� MS SQL int mssql_select_db (string database_name [, int link_identifier]) ���������� true, ��� false ��� ������.
������������� �� � ������ database_name �������� ��� �������� ����������� ��� ���������� � link_identifier. ���� ����������� �� �������, �� �������� ���������� ������� mssql_connect() � ����������� �� ���������.
����������� �������, ����������� ��������, ����� ���������� ������ ��.
��. �����: mssql_connect(), mssql_pconnect(), � mssql_query() mssql_query. ���������� ������� � �� int mssql_query (string query [, int link_identifier]) �������� ������ ������� �������� ��, ��� �������� (���������� ���������) ����������� ��� ���������� � link_identifier. ���� ����������� �� �������, �� �������� ���������� ������� mssql_connect() � ����������� �� ���������.
���������� ���������� ������ ������������ �������, ��� false ��� ������.
��. �����: mssql_select_db(), � mssql_connect().
mssql_num_rows. ��������� ����� ������������ ������� int mssql_num_rows (string result) ���������� ����� ������� � ������ ������������ �������� result, mssql_query().
��. �����: mssql_query(), � mssql_fetch_row().
� ������� ���������� ������ ����������� ������� mssql_affected_rows() � ��� ����, ����� �������� ������� ������� ���� �������� ��������� UPDATE,
INSERT ��� DELETE, ���������� ������������ ��� �������� ����������:
$rsRows = mssql_query(«select @@rowcount as rows», $db);
$rows = mssql_result($rsRows, 0, «rows»);
mssql_free_result. ����������� ������ ������� int mssql_free_result (int result) ������� ����������� ������, ���������� ������� ������� result, ������������ ��������. �� ������� ������������ ������, ���� ��������� ��������� ������, ��� ��� ������ ������������� ������������� ��� ���������� �������.
mssql_result. ��������� ������������� �������� ������ ������� int mssql_result (int result, int i, mixed field) ���������� ���������� ������ �� ������ ������� result.
� ��������� row ����������� ����� ������ (��������� ���������� � 0), � ��������� field ����� ������� ������ ���� (�����), ��� ���� ��� ������ ��� ���� (����:
����_�������.���_�����) ��� ����� ���� (��� �������� ���� ‘SELECT foo AS bar FROM. ‘).
��� ������ � �������� �������� ������� ����� ������ ����������� ������� ���� _fetch_ (��. ����). ����� ��������, ��� ��������� ������� �������������� ������� ���������.
�� ������� �������� ������� mysql_result() � ��������� � ������� ��������� ��������� ������ �������.
������������� ������������ �������������� �������: mssql_fetch_row(), mssql_fetch_array(), � mssql_fetch_object().
mssql_data_seek. ����������� ����������� ��������� ������ int mssql_data_seek (int result_identifier, int row_number) ��� ������ ������ ������� mssql_fetch_row() (��� ��������), ���������� ������ ������ ��������� �� ���������. ������ ������� ��������� �������� ���������� ������ � ������ ������� result_identifier, ���, ����� �� �������� �� ������ � ������� row_number (��������� ���������� � 0).
��� ���������� true, ��� false ��� ������.
��. �����: mssql_data_seek().
mssql_fetch_array. ��������� ������ � ������ array mssql_fetch_array (int result) ���������� ������, ��������������� ������� ������, �� ������ ������� result, ������������ ��������; ��� false ������� ����� �� ������� (��� ���� ������ ������ ������������ �� ���������).
������ ������� �������� ����������� ������� mysql_fetch_row(), � ��� ���������� ������������ �����������-������������� ������. ������ � ��������� ������� ����� �������������� ��� ����� ����� �����, ��� � �� �� ������.
��������, ��� ������� �� ����������� ���������, ��� mysql_fetch_row(), �� ������������� �������������� ����������������.
��. �����: mssql_fetch_row().
mssql_fetch_row. ��������� ������ � ������������ ������ array mssql_fetch_row (int result) ���������� ������, ��������������� ������� ������, �� ������ ������� result, ������������ �������� (����������� ����� ������� ���������� ��������� ������); ��� false ������� ����� �� �������.
������ ���� ������ ����������� � ������������ �������� �������, (��������� ���������� � 0).
��. �����: mssql_fetch_array(), mssql_fetch_object(), mssql_data_seek(), mssql_fetch_length(), � mssql_result().
mssql_fetch_object. ��������� ������ � ��������� ������� int mssql_fetch_object (int result) ���������� ������, � ��������� �������� ��������� ���� ������� ������; ��� false ������� ����� �� �������.
�� �������� ������� ��������� mysql_fetch_array(), � ����� ��������� mysql_fetch_row().
��. �����: mssql_fetch_array() � mssql_fetch_row().
mssql_num_fields. ��������� ����� ����� � ������ ������� int mssql_num_fields (int result) ��. �����: mssql_query(), mssql_fetch_field(), � mssql_num_rows().
mssql_fetch_field. ��������� ���������� � ���� ������ � ��������� ������� object mssql_fetch_field (int result [, int field_offset]) ���� ����� ���� field_offset �� ������, ��� ������ ������ ������� ������������ �������� ���������� ���� �� ������ ������� result.
������������ ������ ����� ��������� �������� (� �������� ����������):
name � ��� ����. ���� ���� — ��������� ���������� �������, ��� ������������ � ���� computed#N, ��� #N � ���������� �����.
column_source � ��� �������, ������� ����������� ���� max_length � ������������ ������ ���� numeric � 1, ���� ���� �������� ��. �����: mssql_field_seek().
mssql_field_seek. ����������� � ���������� ���� int mssql_field_seek (int result, int field_offset) ������������ � ���������� ������ ����. �, ���� ��� ��������� ������ mssql_fetch_field() �� ����������� ����� ����, ����� ���������� ���.
��. �����: mssql_fetch_field().
InterBase InterBase � ���������� ��, ������������ Borland/Inprise. http://www.interbase.com/.
��������� ������ InterBase 6 ���������������� ���������.
��� �� ���������� ��������� ������� (‘) ��� �����������, �� �������� � �� Sybase, ���� � ���� php.ini �������� �����:
magic_quotes_sybase = On ibase_connect. ����������� � ������� �� InterBase int ibase_connect (string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]]) �������� database ������ ��������� ���� � ����� �� �� �������. ���� ������ �� ���������, �� ������ �������������� �������: ‘hostname:’ (TCP/IP), ‘//hostname/’ (NetBEUI) ��� ‘hostname@’ (IPX/SPX), � ����������� �� ������������ ���������.
username � password ����� ����� ���� ������� ������� ������������ PHP ibase.default_user � ibase.default_password. charset ���������� ���������, ������������ �� �� ���������. buffers � ����� ������� ������������ ��� ����������� �� (��� �������� 0 ��� �� ��������, ������ ����� ������������ ����������� ��������). dialect ��������� ������������ ������������ ������� SQL (�� ��., ����� �������, �������������� ���������� ������).
ibase_connect(‘localhost:/usr/db/db.gdb’,’SYSDBA’,’masterkey’, ‘ISO8859_1’, ‘100’, ‘1’ ) ;
���� ������� �������� ���������� � ���� �� �����������, ����� ����������� �� ���������, � ������������ ������������� ����������.
� ����� ������� ������� ��������� ����������� �������� ibase_close(), �� ��� ����� �� ������, ��������� PHP ������������� ��������� ��� (������������) ����������� ��� ���������� �������.
��. �����: ibase_pconnect().
ibase_close. ���������� �� ������� �� InterBase int ibase_close ([int connection_id]) ���������� true, ��� false ��� ������. ������� ���������� (���� �������) �����������, � ��������� ����������.
������������� ������������ ����������� ����������� � ���������, ���� ��� �� ���������, �� ����������� ���������, �������� ������ �������� �����������.
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������.
��������, ���������� �����������, ��������� �������� mysql_pconnect() �� �����������.
ibase_pconnect. �������� ����������� ����������� � ������� �� InterBase int ibase_pconnect (string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])
ibase_pconnect() ��������� ������� ibase_connect() � ����� ����������:
����� ������������, ������� �������� ��������� ������� �� ��� �������� (����������) ����������� � �����������, ������������ ���������. ���� ����� ����������� ��������������, �� ������������ ��� �������������, ������ �������� ������ �����������. ��� ���������� �������, ����������� �� �����������, � �������� �������������� ��� ����������� �������������. (������� ibase_close() �� ����� ������� �����������, ��������� � ������� ibase_pconnect()).
��. �������� ���������� �: ibase_connect().
ibase_prepare. ���������� ������� ��� ������������ ���������� int ibase_prepare ([int link_identifier, string query]) � ���������� ����� ������� ���� ������ ����� ��������� �������� ibase_execute(), ������ ��� ���������.
ibase_execute. ���������� ��������������� ������� int ibase_execute (int query [, int bind_args. ]) ��������� ������ query, �������������� �������� ibase_prepare(). ��� ����� ����������, ��� ������������� ��� ���������� ����� �������� �������� ibase_query(), ���� ���� ������� ����������� ������ ������������ �����������.
ibase_free_query. ����������� ��������������� ������� int ibase_free_query (int query) ���������� ������, �������������� �������� ibase_prepare().
ibase_query. ���������� ������� � �� InterBase int ibase_query ([int link_identifier, string query [, int bind_args]]) ���������� ���������� ������ ������� ��������������: ibase_fetch_row(), ibase_fetch_object(), ibase_free_result() � ibase_free_query().
���� ������� ������������ ����������� �������� ���������� �������, �������������� ������������ ������� ibase_prepare() � ibase_execute().
ibase_trans. ������ ���������� int ibase_trans ([int trans_args [, int link_identifier]]) ibase_commit. ���������� ���������� int ibase_commit ([int link_identifier, int trans_number]) ��������� ���������� trans_number, ��������� ibase_trans().
ibase_rollback. ������ ���������� int ibase_rollback ([int link_identifier, int trans_number]) �������� ���������� trans_number, ��������� ibase_trans().
ibase_free_result. ����������� ������ ������� int ibase_free_result (int result_identifier) ����������� ������, ������� ������� �������, ������������ ibase_query().
ibase_fetch_row. ��������� ������ � ������������ ������ array ibase_fetch_row (int result_identifier) ���������� � ������� ��������� ������ �� ������ ������������� ibase_query().
ibase_fetch_object. ��������� ������ � ��������� ������� object ibase_fetch_object (int result_id) ���������� � ��������� ������-������� ��������� ������ �� ������ result_id ������������� ibase_query() ��� ibase_execute().
php $dbh = ibase_connect ($host, $username, $password);
$stmt = ‘SELECT * FROM tblname’;
$sth = ibase_query ($dbh, $stmt);
while ($row = ibase_fetch_object ($sth)) < print $row-email. "\n";
��. �����: ibase_fetch_row().
ibase_field_info. ��������� ���������� � ���� ������ � ������� array ibase_field_info (int result, int field number) ���������� ������, ���������� ��������: name, alias, relation, length, type.
$rs=ibase_query(«Select * from something»);
> ibase_timefmt. ��������� ������� ������������ ���� � ������� int ibase_timefmt (string format [, int columntype]) ��������� ���� ���� � ������� ������������� �-�������� strftime(), � � ������� ������ ������� ����� ���������� ��� �������������� ������������ ��������� ������. � ������ format ������ ������, �� �������� ������������ ��������������. �������� columntype ���������, ������ ����� ����� ��������������� (������ � InterBase ������ 6 ��� ����) � ����� ��������� ����������� �������� IBASE_TIMESTAMP (�� ���������), IBASE_DATE � IBASE_TIME.
��������� ����� ���������� ������� ������������ (php.ini):
ibase.timestampformat, ibase.dateformat � ibase.timeformat.
ibase_num_fields. ����� ����� � ������ ������� int ibase_num_fields (int result_id) � ��������� ����� ������� ��� �� ��������������.
��. �����: ibase_field_info().
��������� ��������� �� ������ string ibase_errmsg (void ) ���� BLOB � PHP ������� ��������� ������� ��� ������ � ������ BLOB �� InterBase (������������ ��� ��� ���� �����������):
ibase_blob_create � ������� ���� BLOB, ������� ����� ����� ���� ��������� �������� (������������ ���������� ���������� ��� �������� �������) ibase_blob_open � ��������� ������������ �������� ���� BLOB ��� �������� ibase_blob_close � ��������� ���� BLOB ibase_blob_add � ��������� � ����� ���� BLOB ������ ibase_blob_import � ���������� ���������� ��������� ����� � ���� BLOB ibase_blob_get � ������ ��������� ���� BLOB ibase_blob_echo � ������� ���������� ���� BLOB ibase_blob_info ibase_blob_cancel ��������� ������������ ����������� �� ���� �������� �������� ������ �� ����������, �� ���������� �����.
Informix ������������ ������ ���������� Informix ��������� �������� � �� Informix (IDS)
7.x, SE 7.x, Universal Server (IUS) 9.x � IDS 2000. ��������� IDS 7.x ������ (������� ���� BYTE � TEXT), �� ��� IUS 9.x ��� �� ��������� ��������� ����� SLOB � CLOB.
��� ���������� ���������� ESQL/C (������ 7.2x ��� ���� ������ ������� � Informix Client SDK) ��� ���������� �������� Informix. ����� ������ ���� ����������� �������� ���������� ������� INFORMIXDIR � ��������� ���������� $INFORMIXDIR/bin � ������ ����� PATH �� ������� ������� configure (� ������ -with_informix=yes). ��������������� ���������� ������ ���������� � ��������� ����� ���� �������������� ���������� ��������� ���������� IFX_LIBDIR, IFX_LIBS � IFX_INCDIR.
�� ����� ���������� ���������� ������� INFORMIXDIR, INFORMIXSERVER � PATH ������ ���� ��������� ����������������.
��� ����� BLOB (TEXT � BYTE) �������� ������������ �� ��������������. �� ���������� ����� �������� � ��������� ���������� (���� ����������� ifx_blobinfile(0);) �������� ifx_get_blob($blob_id); ��� ��������� � ����� ����������� �������� (���� ifx_blobinfile(1);) ifx_get_blob($blob_id);.
ifx_connect. ����������� � ������� �� Informix int ifx_connect ([string database [, string user [, string password]]]) ��� ��������� �������������, � ���� �� �� ���������, �� ������������ �������� �� ����� ������������: ifx.default_host (���� �� �������, ���������� Informix ���������� �������� ��������� ���������� INFORMIXSERVER), ifx.default_user, ifx.default_password. ������������ ���������� ����������� ��� FALSE ��� ������.
���� ������� �������� ���������� � ���� �� �����������, ����� ����������� �� ���������, � ������������ ������������� ����������.
� ����� ������� ������� ��������� ����������� �������� ifx_close(), �� ��� ����� �� ������, ��������� PHP ������������� ��������� ��� (������������) ����������� ��� ���������� �������.
��. �����: ifx_pconnect(), � ifx_close().
ifx_pconnect. �������� ����������� ����������� � ������� �� Informix int ifx_pconnect ([string database [, string userid [, string password]]]) ������������ ���������� ����������� ��� FALSE ��� ������.
ifx_pconnect() ��������� ������� ifx_connect() � ����� ����������:
����� ������������, ������� �������� ��������� ������� �� ��� �������� (����������) ����������� � ����������� (��, ������������, ������), ������������ ���������. ���� ����� ����������� ��������������, �� ������������ ��� �������������, ������ �������� ������ �����������. ��� ���������� �������, ����������� �� �����������, � �������� �������������� ��� ����������� �������������. (������� ifx_close() �� ����� ������� �����������, ��������� � ������� ifx_pconnect()).
��. �����: ifx_connect().
ifx_close. �������� ����������� � Informix int ifx_close ([int link_identifier]) ������ ���������� true.
������������� ������������ ����������� ����������� � ���������, ���� ��� �� ���������, �� ����������� ���������, �������� ������ �������� �����������.
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������.
���������� �����������, ��������� �������� ifx_pconnect() �� �����������.
��. �����: ifx_connect(), � ifx_pconnect().
ifx_query. ���������� ������� � �� Informix int ifx_query (string query [, int link_identifier [, int cursor_type [, mixed blobidarray]]]) �������� ������ ������� �������� ��, ��� �������� (���������� ���������) ����������� ��� ���������� � link_identifier. ���� ����������� �� �������, �� �������� ���������� ������� ifx_connect() � ����������� �� ���������.
���������� ���������� ������ ������������ �������, ��� false ��� ������.
��� �������� �SELECT� �������������� ���������� cursor_type ����� ������� ����������� ��� ������� (�������� ����������� ������� ������ �� �������� IFX_SCROLL, IFX_HOLD).
� ����������� �� ���� ������� ����� ������������ (����������) ������� ��� �����������) ����� �������� �������� (��������������� ifx_affected_rows().
���� � ������� ���������� ���� BLOB (BYTE ��� TEXT), �� � ��������� (�������) blobidarray ����������� ����������� (blob ids), � � ������� ������ �� �������� �������� ���� «?».
���� ���������� ����� TEXT (��� BYTE) ���������, ����� ������������ ������� ifx_textasvarchar(1) � ifx_byteasvarchar(1), ��� ��������� �������� � ����� ������ (�������� �� ����������), ��� ���� �� ��� ���� �������� (�� ��������) ������ VARCHAR, �� �������� � blob ������������. � ��������� ������ �������� ������������ �������������� �������.
� �������� ifx_textasvarchar(0) � ifx_byteasvarchar(0) (�� ���������), ������� ������� ���������� ��� ����� BLOB �� ����������� (����� �����). � ���������� ����� �������� ������������ ���������.
// 1. «orders» html ifx_textasvarchar(1); // use «text mode» for blobs $res_ , $conn_id);
��. �����: ifx_connect().
ifx_prepare. ���������� SQL-������� ��� ������������ ���������� int ifx_prepare (string query, int conn_id [, int cursor_def, mixed blobidarray]) ���������� ����������, ������������ � ������� ifx_do(). ��� �������� �SELECT� �������������� ���������� cursor_type ����� ������� ��� ������� (�������� ����������� ������� ������ �� �������� IFX_SCROLL, IFX_HOLD).
���� � ������� ���������� ���� BLOB (BYTE ��� TEXT), �� � ��������� (�������) blobidarray ����������� ����������� (blob ids), � � ������� ������ �� �������� �������� ���� «?».
���� ���������� ����� TEXT (��� BYTE) ���������, ����� ������������ ������� ifx_textasvarchar(1) � ifx_byteasvarchar(1), ��� ��������� �������� � ����� ������ (�������� �� ����������), ��� ���� �� ��� ���� �������� (�� ��������) ������ VARCHAR, �� �������� � blob ������������. � ��������� ������ �������� ������������ �������������� �������.
�������������� ������� ��������� ������ ��������� ����� ���������� ������� ������� �������� ifx_affected_rows().
��. �����: ifx_do().
ifx_do. ���������� ��������������� ������� int ifx_do (int result_id) ���������� true, ��� false ��� ������.
��. �����: ifx_prepare(), ifx_affected_rows().
ifx_error. ��������� ���� ������ ��������� �������� Informix string ifx_error(void);
������������ ������ �������� ������ ������������� ��������� �������:
x [SQLSTATE = (��� �����) (��� �����) SQLCODE=cccc] ��������� x � ���� �� ��������, ����������� � ��������� ������.
������ � ��� ������.
N � ������ ��� ������.
���� x-������ �� ������, �� SQLSTATE � SQLCODE ��������� ������ ������ (��.
��. �����: ifx_errormsg() ifx_errormsg. ��������� �������� ������ ��������� �������� string ifx_errormsg ([int errorcode]) ���� � ��������� ������� ��� ������, �� ����� �������� �� ��������.
��. �����: ifx_error() ifx_affected_rows. ��������� ����� ���������� ��� ������������ ������� int ifx_affected_rows (int result_id) � ��������� ����������� ���������� ������ �������, ������������ �������� ifx_query() ��� ifx_prepare().
��� �������� ���� insert, update � delete ������������ ����� ���������� �����������, ����������, ��������� ������� (�������� sqlerrd[2]). ��� �������� ������� select, ��� �������������� ����� (sqlerrd[0]), ������� �� ������ �����.
> $rowcount = ifx_affected_rows ($rid);
��. �����: ifx_num_rows()
ifx_getsqlca. ��������� ���������� ������� sqlca.sqlerrd[0..5] array ifx_getsqlca (int result_id) � ��������� ����������� ���������� ������ �������, ������������ �������� ifx_query() ��� ifx_prepare(). ������������ ������������� ������, ���������� �������������� ���������� ���������� ������� �������� sqlerrd0. sqlerrd5. ������������� �� �� �������� ����� ��������� �������� �SELECT dbinfo(‘sqlca.sqlerrdx’)».
ifx_fetch_row. ��������� ������ � ������ array ifx_fetch_row (int result_id [, mixed position]) ���������� � ������������� ������� (��������� ������ ����� �����) ������ �� ���������� ������� ��������� ��� (������������� ifx_query() ifx_prepare()), ��� false ���� ������� ������ �� �������.
��� ����� Blob ������������ �� �������� ��������������, ������� ����� ������������ � ������� ifx_get_blob() (���� �������, �� �������������� ifx_textasvarchar(1) ��� ifx_byteasvarchar(1)).
�������������� ���������� position ��� SCROLL �������� ����� ������� ����� ������ ������� ����������: �NEXT�, �PREVIOUS�, �CURRENT�, �FIRST�, �LAST� ��� ����������� ����� ������.
����������� ������ (�� ��������� ���������� ��������� ������).
$r . $name, $connid, IFX_SCROLL);
printf («%s = %s,», $fieldname, $fieldvalue);
$row = ifx_fetch_row ($rid, «NEXT»);
ifx_htmltbl_result. ����� ����������� ������� � ������� HTML int (int result_id [, string ifx_htmltbl_result html_table_options]) ���������� ����� ���������� ������� ��� FALSE ��� ������.
�� ������ ��������� ����� ������� �������� ���� table.
$r . $name, $connid, IFX_SCROLL);
ifx_fieldtypes. ��������� ������ ����� ������ ������� array ifx_fieldtypes (int result_id) ���������� ������������� ������ (����� ����� �������� ���������, � SQL ���� ����� � ����������); ��� FALSE ��� ������. � ��������� ����������� ��������� �������.
$types = ifx_fieldtypes ($resultid);
printf(«%s :\t type = %s\n», $fname, $types[$fname]);
> ifx_fieldproperties. ��������� ������ ������� ����� array ifx_fieldproperties (int result_id) ���������� ������������� ������ (����� ����� �������� ���������, � SQL �������� ����� � ����������); ��� FALSE ��� ������. � ��������� ����������� ��������� �������.
�������� ���������� � ����:
�SQLTYPE;length;precision;scale;ISNULLABLE�, ��� SQLTYPE � ��� ���� Informix, (�������� �SQLVCHAR�), � ISNULLABLE = �Y� ��� �N�.
$properties = ifx_fieldproperties ($resultid);
printf («%s:\t type = %s\n», $fname, $properties[$fname]);
> ifx_num_fields. ��������� ����� ����� ������������ �������� int ifx_num_fields (int result_id)
ifx_free_result. ����������� ���������� ������� int ifx_free_result (int result_id) ifx_create_char. �������� char ������� int ifx_create_char (string param) � ��������� ����������� ���������� �������.
ifx_free_char. ����������� char ������� int ifx_free_char (int bid) ���������� true, ��� false ��� ������.
ifx_update_char. ��������� ����������� char ������� int ifx_update_char (int bid, string content) ���������� true, ��� false ��� ������.
ifx_get_char. ��������� ����������� char ������� int ifx_get_char (int b >
����������� ������������ ������������ ����� � ������� ����������� ������� ���� 2015 �. ���������� ������������ ������������ ����� � ������� ����������� ������� ���� 2015 �. ���������� ������������ 1. �������� 1.1 ����� ���������� 1.2 ���� � �������� ������� 2. ������������� ������������� ��� � ���������� ��� ������������� ���������� 2.1 ��������� ������������� ��� 2.2 ������ ������������� � ���������� ���������� 3. ��������� ������������� �������� � ��������� ����� 3.1 ��������� ������. �
�Vozny D. V. ������� �������������� � ���������� ������������ ������ � ����������� ������������ = System of psychocorrection and social rehabilitation for men suffering from alcohol dependence. Journal of Education, Health and Sport. 2015;5(4):102-108. ISSN 2391-8306. DOI: 10.5281/zenodo.16640 http://ojs.ukw.edu.pl/index.php/johs/article/view/2015%3B5%284%29%3A102-108 https://pbn.nauka.gov.pl/works/553292 http://dx.doi.org/10.5281/zenodo.16640 � Formerly Journal of Health Sciences. ISSN. �
����� ����������� ����� � ��������̻ ������� � 57 ������ �����, ��������, ���������, ���������� � �������� 9 ���� 2015 ����, 19:00 ������, ��������� ���., �. 4�, ���. 1 ������� � 2012 ���� � 1 ������, 9 ���� 2015 �������������� ����� � 31 ���� �� 8 ���� 2015 ���� (� 10:00 �� 20:00, ����� ������������) �� ������: ������, ��������� ���., �. 4�, ���. 1 (�. �������� ���) �������, ����� �������� ���������, ���������� � ������� ������ �� ���. (495) 926 4114 �� ����������� �����: info@vnikitskom.ru ��. �
������� �� ������������� � �� ����������� ������ ���� �������� ������ � ������ ������������� � ������������� � �����, ����� ������ ������ ��������. ���� �������� �������� ����� ������ ��� ������! �� ��� ����� �������, ����� ������� �� ��� ��������. � ��� ������ ����� ����� � ���� ����������� � �������������. ����� ������ ����� ��������� ��������, ��� ������ ���� ��� ����� ���������. ������������� � ���������� ������� ��� ������ �����. ���� �� ��� �� ������ �� ��������������� ������� ������. ��. �
��.�. ������ � �� � � �� � � � � � � � � � � � � � ������������� ���� �������������� ������������� �.�. ������ �������������� ������ ������������� ���� 2-� ������� (�����������) ������ �����. ����������� ������ ��� 575+573+519.8 ��� 28.04+22.18 �59 � � � � � � � � � � � � � � 2009 �. ������ �. �. �59 �������������� ������ ������������� ���� [����������� ������] / �. �. ������. � 2-� ���. (��.). � �. : �����. ����������� ������, 2012. � 215 �. : ��., [8] �. ��. ���. � (��������������. �
������ 2013 ����� � ������������ ������������������ ����� ����� ������ ���� ��� ��� ����� ������������, �� ��������� � �������� �����! ���� ����� ������ ����� � ��������, ������� �� ������ ������ �����������. �� ������ ����� ��������� �����, ����� ������� �������� ��������� ����� ����� ������. �� ��������� ������ ������ �� �������, ������� ��� ������ ������� ������� ��� ������ ������ � ����� �����. ��������� ����� ����� ������ ������ ������ � ����� ����������������� ���� ����� ������ � 2011. �
2� �. ������������ � �������� ��������� � ����������������� ��������� ����������� ����������� ������������ �������, ������������ �������� ������������ ����������������� ������������ ������� �� 31.12.2008 � 1755 � ������������ � ���������� ������ ������ ������� ������ 1 1 83, 2 87 ������� ������� ���������� ���������, ������� ������� ������������ 04.04.2012.N2 ��������� ������� ���������. �
������������� ������ �������������. ��������� ������ ������ � ��������� ��������� �������� � ��������� ����������� ��� ������ ������ ��������, �������������� ������������� ��������� �������� ������ ����� ������������ � ������������� ���������� ������� �������� ������ � �������� ���������� ��� ��������� ������ ��������� �������������� �������� �������� ������ � �������� ���������� � ������� (�����) 23 � 25 ������ 2009 �. . �������� � ������� ����������� ��������� � �������� �����������. �
�������� ��������� �.�. ������ ������������� ������������ ����: ����������� � ������� ������������� ��������� � ������ ����������� ����������� ����� ����� ������� ����������� �������� �������� �� ������������� � �������������. �� ������ ������, ����������� ��������� �������� ����������� �������� ������������ ��������� � ������ �������������� � ������������� ������� ������������ ������������. ����� ��������� �������, ������������ ����������� ������������, ������� �������� ����� �� ���������������. �
����������� ��������� �������� ������ ���������� �������������� ��������� ����������������� ���������� ���� �������������� ������������ ����������� ����������� ���������� ���� �� �24� ���� 2015 ���� �� �22� ���� 2015 ���� ���������� ������� �������������� ��������� �������������� ������������ ����������� ����������� ���������� ���� �� �14� ���� 2015 ���� ��������� ���������� ������ �� ������� ����� ������ ���������� ������ ��� 2015�2020 ����� ������ ���������� ����� ��������� ������ 1. ���� �. �
������-��� 2014 ��� ���������� � ������������: ��� ����������� ��������λ ������������ ������� ����� ��������� ������� � ������ �1 � ������, ������� � ��� 1960 ����. �������������: �����������, �� ������. ������: �4. ���������� �������: 48. ��������� ��������� �������: 25-35 ���. ��������� ������� � ������� ���� �������� ��������������� ������� �������, ��������� ������ � ����������� ��������� ���������� � ������ �� ��� ������ �� ����� www.ftbl.ru � � ���������� �����: www.ftbl.ru � ������. �
������-�����. ���������. 17.12.2015 ���� ��-��-�� ������� ����� ��� �� ������ � ������ ���� � ���� ������� �� ������ �������� ��� ������. �� ���������� ������������ �����, ��������� �������, ��� � ���������� �� ������ ���������� ����������� ����������� ���������� ����� ��-���������� ������������ ������������ ������ ��-��-��. �������, ���� ����� �������� � ���������� ������ �� ���������, ����������, �� ����� ������� ���, �������� ��-���������� ���� ������, ����� �� ��������� � ���������. �
�������������� ������������ ������� ������������� �� 12 ��� 1996 �. N 377-� �� ���������� ������� ����� ������������ ������� � ����� ������������ ������� ������ ������ ������ � ���������� �������� ������������� � ��������� ���� ������������ �������, � ������������ � ������� ���������� ��������� �� ������ ���������� ��������� ����� � ������� ���������� ��������� � �������� ����, ������� ������������ ������� ������������� ������������ ������� ������������: 1. �������� ������� ����� ������������. �
������ ������ ������� 3. ����������� ������ ������� �������’���� ������ ��� ������������� ������ � ������� �������) �������. ��������� ��������� ������� ����������� ������ �� ��, ��� � � ���������� ������: t0 ��������� ������ ������, t1 �������� ������ ������, � = t1 t0 ���� ������. ��������� ���������� �������� ������� ����������� ���� �� �� �������� ����� �������, ����������� � ������, � ������� �� ���������� ��� ������������� �� ���������. ������� ��������, �������� ��������� ���������� ���. �
���� �������������� ��ʻ ����� � �������� ���������� ����� �� 2012 ��� (����������� ��������-������) ����������� � ������������ � ��� 14064-1:2006 �����������, 2013 ������������ �����������, ����������� �����: ��� �������������� ��ʻ �������� ������: 01.01.2012 � 31.12.2012 ���������: ����� ����������� ��� ���������� �� ������ � � �������������� � ��� �������������� ��ʻ � ������������ � ������������ ��� 14064-1:2006 ����� ����������. ����� 1. ���������� � ����������� �� ���������������. �
2020 www.os.x-pdf.ru — ����������� ����������� ���������� — ������� ����������
��������� ����� ����� ��������� ��� ������������, ��� ����� ����������� �� �������.
���� �� �� �������� � ���, ��� ��� �������� �������� �� ���� �����, ����������, �������� ���, �� � ������� 1-2 ������� ���� ������ ���.
��� ����� ��� ifx_free_result
(PHP 3 >= 3.0.3, PHP 4, PHP 5)
ifx_free_result — Releases resources for the query
Description int ifx_free_result ( int result_id )
Releases resources for the query associated with result_id . ���������� TRUE � ������ ��������� ���������� ��� FALSE � ������ ������������� ������.
����. | ������ | ����. |
ifx_free_char | ������� ���� | ifx_get_blob |
���� �� �� ����� ��� ������, �� ���������� ��������������� ������� �� �����:
���������� � ��������� QR/BAR ����
� ������ ���������� �������� ������, ��� �������� � ��� ���������� ��������� �/��� ������ QR ����� (��� �����-�����), � ��� ����� ��������� ���� ������ �������� � ���������� �� ���������� �������� ������� ����������.
QR-���� ������ �� ����� ���������� �����-����� (����� ������ ‘Bar code’) � ��� ������� ������ � ���� �����, �� ���������� � �������� ��������� ������� �� �������� ������ �� ����, �� ������� ������ ����������� � �������.
�������� ������ ��� ����� QR-��� ����� � ������������ ������ �� ������ ������ QR ���
��� ���������� ����������� ������ ��� ����������� 2 ���������� �� ���� ��������:
- ZBar bar code reader
- ZXing (�Zebra Crossing�)
��������� QR-����
��� ���� ���� �����������, result = scanner.scanImage(codeImage) ������ ��������� ���������� ���������, ���� ����� ��� �������� QR-���� ����� �������. �� ����, ������ ������ ���������� ��� �� ���� � ������� �������� ��������. ������� ���������� ������ �������������� �������� �� ������ ������������ ���� ��� �� ������������ ���������� �������.
���������� QR-����
� ���� ������ ��� ����� ������������� ������� ���������� ZXing.
������� �������� encodeAsBitmap: ����� ��� ��� ��� �����������, �������� � ������� �� ��������, ������� �������� �� ������.
��� �� ���� �����-�����?
������ �������� ��� ���� �����-����� ��� �����-���� �����������, �� �������.
��������� �� �������������� �� ������, � ����� ������:
� ������� encodeAsBitmap �������� � ���� format ������ BarcodeFormat.QR_CODE, ��� ������ ����� BarcodeFormat.CODE_128, ��� ����� ��������������� �����-���� ��������� Code 128
���� ������� ����������
������ �����, ��� ������ � ������� ����� ����� ���� ����������� �� ������ ����������
��������, ��� �����
��������� ������ ������ (���� Memory Leak) ����� ���� ��� ����� ����� ��������� ��������� � ��������� �� ������ ����� ������ ����� � ������.
��� ����, ��� �� ����� ��������, ���� ����������� ������������ CallbackBuffer ��� ��������� ���������� ������ ��� ������ �����.
��� ������������� �������� ��������� �� ������ ������ � ���� ����������� �����-���� � ������ �������� � ������.
��!, ������� ������ ��������, ������� �� � ����� �� �������� �������� � ������ ������� � �� ���� ��� �� �������� ���, ������� ������� � ������� ����� �������� ������.
��������� ���������� ����� ����������� �������� ���������� ���������: ������������ ������ � ������, ����������� ������� � �.�.
������� ����������� �������� ���������, ��� ���� ��� �� ���������� ������������� ������������ ���� �����-����� � ����������� ���������
ifx_free_result
(PHP 4, PHP ifx_free_result � Releases resources for the query
Description
Releases resources for the query associated with result_id .
Parameters
result_id is a val >ifx_query() or ifx_prepare() (select type queries only!).
Return Values
Returns TRUE on success or FALSE on failure.
See Also
- ifx_do() — Execute a previously prepared SQL-statement
ifx_free_result
(No version information available, might be only in CVS)
ifx_free_result — Releases resources for the query
Описание
Releases resources for the query associated with result_id .
Список параметров
result_id is a valid resultid returned by ifx_query() or ifx_prepare() (select type queries only!).
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
ifx_free_result
(PHP 4, PHP ifx_free_result � Releases resources for the query
Description
Releases resources for the query associated with result_id .
Parameters
result_id is a val >ifx_query() or ifx_prepare() (select type queries only!).
Return Values
Returns TRUE on success or FALSE on failure.
See Also
- ifx_do() — Execute a previously prepared SQL-statement
��� ����� ��� ifx_free_result
int ifx_num_fields(int result_id);
���������� ����� ������� � ������� ��� result_id ��� FALSE�� ������.
����� ���������� ��� ���������� �������, ���� ����� ���� ��� ���������� ������� � �������.
ifx_num_rows
��������
int ifx_num_rows(int result_id);
���� ���������� �����, ��������� �� ��� ��� ��� ������� � result_ >ifx_query() ��� ifx_do() .
ifx_free_result
��������
int ifx_free_result(int result_id);
����������� �������, ������� �������� � ��������������� ���������� result_id. ���������� FALSE ��� ������.
ifx_create_char
��������
int ifx_create_char(string param);
������� ���������� ������. param ������ ����� ���������� ����������.
ifx_free_char
��������
int ifx_free_char(int bid);
������� ��������� ������� ��� ����������� �������������� ������������ ������� bid. ���������� FALSE ��� ������, � ��������� ������ — TRUE.
ifx_update_char
ifx_update_char — �������� ���������� ����������� �������
��������
int ifx_update_char(int bid, string content);
��������� ���������� ����������� ������� � ��������������� bid. content — ������ � ������ �������. ���������� FALSE ��� ������, � ��������� ������ — TRUE.
ifx_get_char
��������
int ifx_get_char(int bid);
���������� ���������� ����������� ������� � ��������������� bid.
ifx_create_blob
��������
int ifx_create_blob(int type, int mode, string param);
������� ������ BLOB
type: 1 = TEXT, 0 = BYTE
mode: 0 = BLOB-������ �������� � ������ 1 = BLOB-������ ������ ���������� � �����
param: ���� ����� = 0: ��������� �� ���������� ���� ����� = 1: ��������� �� ����-������
���������� FALSE ��� ������, � ��������� ������ — ����� ������������� BLOB-�������.
ifx_copy_blob
��������
int ifx_copy_blob(int bid);
��������� ���������� BLOB-������. bid — ������������� ������������ �������
���������� FALSE ��� ������, � ��������� ������ — ����� ������������� BLOB-�������.
ifx_free_blob
��������
int ifx_free_blob(int bid);
������� ������ BLOB ���������������� bid. ���������� FALSE ��� ������ � TRUE � ��������� ������.
ifx_get_blob
ifx_get_blob — ��������� ���������� BLOB
��������
int ifx_get_blob(int bid);
���������� ���������� ������� BLOB � ��������������� bid.
ifx_update_blob
��������
ifx_update_blob(int bid, string content);
��������� ���������� ������� BLOB c ��������������� bid. content — ������ � ������ �������. ���������� FALSE ��� ������ � TRUE � ��������� ������.
ifx_blobinfile_mode
��������
void ifx_blobinfile_mode(int mode);
������������� ��� BLOB ������ �� ��������� ��� ���� �������� select. ����� «0» �������� ���������� Byte-BLOB � ������, � ����� «1» — ���������� � ����.
ifx_textasvarchar
��������
void ifx_textasvarchar(int mode);
������������� ��������� ��� ���������� ������ ��� ���� ��������� ���� select. ����� «0» — ������������ ������������� BLOB, � ��� ������ «1» — ����������� varchar � ��������� �����������.
ifx_byteasvarchar
��������
void ifx_byteasvarchar(int mode);
������������� �������� ��� ��������� ������ ��� ��� �������� select. ����� «0» — ������������ ������������� BLOB, � ��� ������ «1» — ����������� varchar � ��������� �����������.
ifx_nullformat
ifx_nullformat — ��������� ������������ �� ��������� �������� ��� ������� ����
��������
void ifx_nullformat(int mode);
������������� ������������ �� ��������� �������� ��� ������� ���� ��� ����� ����������� NULL. ��� mode=0 ������������ ������ ������, ��� mode=1 — NULL.
ifxus_create_slob
��������
int ifxus_create_slob(int mode);
������� slob-������ � ��������� ���. ������: Modes: 1 = LO_RDONLY, 2 = LO_WRONLY, 4 = LO_APPEND, 8 = LO_RDWR, 16 = LO_BUFFER, 32 = LO_NOBUFFER -> or-�����. �� ����� ������ ������������ ���������, ����������� IFX_LO_RDONLY, IFX_LO_WRONLY etc. ���������� FALSE ��� ������ � ����� ������������� ������� slob � ��������� ������.
ifx_free_slob
��������
int ifxus_free_slob(int bid);
������� ������ slob � ��������������� bid. ���������� FALSE ��������� � TRUE � ��������� ������.
ifxus_close_slob
��������
int ifxus_close_slob(int bid);
������� ������ slob � ��������������� bid. ���������� FALSE ��������� � TRUE � ��������� ������.
ifxus_open_slob
��������
��������� ������ slob. b > or-�����. ���������� FALSE ��� ������ � ����� ������������� ������� slob � ��������� ������.
ifxus_tell_slob
��������
int ifxus_tell_slob(long bid);
���������� ������� ���� ��� ������� ������ ��� ���������� ������� slob, bid ������ ���� ����������� ��������������� slob. ���������� FALSE ��� ������, � ��������� ������ — ������� ������.
ifxus_seek_slob
��������
int ifxus_seek_blob(long bid, int mode, long offset);
������������� �������� ���� ��� ������� ������ ��� ��������� ������� slob. b >
ifxus_read_slob
��������
int ifxus_read_slob(long bid, long nbytes);
������ ����� � ������ slob. bid — ������������ ������������� slob � nbytes — ���������� ����, ������� ���� ��������. ���������� FALSE ��� ������ � ������ � �������� ������.
ifxus_write_slob
��������
int ifxus_write_slob(long bid, string content);
���������� ������ � ������ slob. bid — ������������ ������������� slob � content — ���������� ������. ���������� FALSE ��� ������ ��� ����� ���������� ���� � ��������� ������.
ibase_connect
��������
ibase_pconnect
��������
ibase_close
��������
ibase_query
��������
ibase_fetch_row
��������
ibase_free_result
��������
ibase_prepare
��������
ibase_bind
��������
ibase_execute
��������
ibase_free_query
��������
ibase_timefmt
��������
�������� � LDAP
��� ��������� ���������� ��������� �������� �� ����� ������� �����, �� ����������� ���� ��� � ������ ��������� �������� ������� ��������������� ��� «���� ���» � ����������� ������� ������ ��� «������». ����� ������ ������ ��������� ���������� �������� ����� ��� ��������, ����������� ��� ����, �� ������ ��� ���� ��������� ����� �������� ��� �����, � �������� ��� ������������ ��� ����������.
��� ������ �� ���� � ����������� �� ������� ����� ������������ ����� ��������
������ ����� ����� �������� ������ ������ � ������, � ��� ������������������ �������� ������ �������� ����� �������.
������������ ��������� ������������ ������ � LDAP �������� «distinguished name» (����������� ���), ������������ ������ ��� «dn». �������� dn ����� ����:
cn=John Smith,ou=Accounts,o=My Company,c=US
������ ������ ����� ������ ���������� �������, � ��� ������������������ �������� ������ ������. ������ �������� ��� ..
country = US
organization = My Company
organizationalUnit = Accounts
commonName = John Smith
��� �� ��� � ��� ����������� ��������� �������� �� ������� �����, � ������ ������� ��� ������� ������ �� ����������� ���������, � �������� ������� ���������� LDAP ��������� ����� ���������, ���������� ��� ��������� ����. ������ ������� ��� ����������. ���� �� � ���, ��� �� �� ������ �������� ��� ������� � ������� ����������, �� ���� ��� ���������, ��� �� ��� �� �� ������ ������������ ���� ������ ��� ������������� � �� ��������������. ������ ������ ���������
������ 5. �������������� � ������ ������ ODBC � ���������� � ��������� ������� ��������� ODBC, ������ ������ ������� . �
msql_result. ��������� �������� ������ ������� int msql_result (int query_identifier, int row, mixed field) ���������� ���������� ������ �� ������ ������� query_identifier. � ��������� row ����������� ����� ������ (��������� ���������� � 0), � ���������
field ����� ������� ������ ���� (�����), ��� ���� ��� ������ ��� ���� (����:
����_�������.���_�����) ��� ����� ����.
��� ������ � �������� �������� ������� ����� ������ ����������� ������� ���� _fetch_ (��. ����). ����� ��������, ��� ��������� ������� �������������� ������� ���������.
�� ������� �������� ������� msql_result() � ��������� � ������� ��������� ��������� ������ �������.
������������� ������������ �������������� �������: msql_fetch_row(), msql_fetch_array(), � msql_fetch_object().
msql_data_seek. ����������� ������� ������ ������� int msql_data_seek (int query_identifier, int row_number) ��� ������ ������ ������� msql_fetch_row() (��� ��������), ���������� ������ ������ ��������� �� ���������. ������ ������� ��������� �������� ���������� ������ � ������ ������� query_identifier, ���, ����� �� �������� �� ������ � ������� row_number (��������� ���������� � 0).
��� ���������� true, ��� false ��� ������.
��. �����: msql_fetch_row().
msql_fetch_array. ��������� ������ � ������ int msql_fetch_array (int query_identifier [, int result_type]) ���������� ������, ��������������� ������� ������, �� ������ ������� query_identifier, ������������ ��������; ��� false ������� ����� �� �������.
������ ������� �������� ����������� ������� msql_fetch_row(), � ��� ����� ���������� ������������ ��� ������������� ������ (��� ������������). ��� ������������� ������� ����� ����������� � ��������� result_type ����� �� ��������: MYSQL_NUM, MYSQL_ASSOC, MYSQL_BOTH (�� ���������).
� ������������� �������� ��������� ������ ����� �����. ���� ������� ����������� ����, ������������ ���������. ��� ������� � ����������� ����� ����� ����� ������������ �������� ������� (���� ���������� � ��� ������������������, � ������� ������� � ������� ��� � �������) ��� ������.
��������, ��� ������� �� ����������� ���������, ��� mysql_fetch_row(), �� ������������� �������������� ����������������.
������ ����������� � ���������� ������� ���������� ������������ ����, ������� �������� 0 (��� ������ ������, ��� NULL).
��. �����: msql_fetch_row().
msql_fetch_row. ��������� ������ � ������������ ������ array msql_fetch_row (int query_identifier) ���������� ������, ��������������� ������� ������, �� ������ ������� query_identifier, ������������ �������� (����������� ����� ������� ���������� ��������� ������); ��� false ������� ����� �� �������.
������ ���� ������ ����������� � ������������ �������� �������, (��������� ���������� � 0).
��. �����: msql_fetch_array(), msql_fetch_object(), msql_data_seek(), � msql_result().
msql_fetch_object. ��������� ������ � ��������� ������� int msql_fetch_object (int query_identifier [, int result_type]) ���������� ������, � ��������� �������� ��������� ���� ������� ������; ��� false ������� ����� �� �������.
�� �������� ������� ��������� mysql_fetch_array(), � ����� ��������� mysql_fetch_row().
��. �����: msql_fetch_array() � msql_fetch_row().
msql_fetch_field. ��������� ���������� � ���� ������ � ��������� ������� object msql_fetch_field (int query_identifier, int field_offset) ���� ����� ���� field_offset �� ������, ��� ������ ������ ������� ������������ �������� ���������� ���� �� ������ ������� query_identifier.
������������ ������ ����� ��������� �������� (� �������� ����������):
name � ��� ���� table � ��� �������, ������� ����������� ���� not_null � 1, ���� ���� ��������� ������ �������� primary_key � 1, ���� ���� �������� �������� unique_key � 1, ���� � ���� ����������� ������ ���������� �������� type � ��� ���� ��. �����: msql_field_seek().
msql_field_seek. ����������� � ���������� ���� int msql_field_seek (int query_identifier, int field_offset) ����������� ����� msql_fetch_field() (���� � ��� �� ������ ����� ����) ����� ���������� ���������� � ���� � ��������� ������� field_offset.
��. �����: msql_fetch_field().
msql_fieldtable. ��������� ����� �������, ������� ����������� ���� �� ������ ������� int msql_fieldtable (int query_identifier, int field) msql_fieldtype. ��������� ���� ���� ������ ������� string msql_fieldtype (int query_identifier, int i) ������������ ������ �������� �������� ���� ����: �int�, �real�, �string�, �blob�, ��� �������, ���������� � ������������.
msql_fieldflags. ��������� ����� ���� ������ string msql_fieldflags (int query_identifier, int i) ���� ������� � mSQL ����� ����� ��� �����: �not_null�, �primary_key�.
������� ���������� ������������ ����� ������ ������, ��������� � ���� � �������� i (��������� ���������� � 0) � ������ ������� query_identifier.
(��������� ���������� ������ �� ������������ ����� �������� explode()).
���� ���� ������ �� �����, ������������ ������ ������.
msql_fieldlen. ��������� ������� ���� ������ ������� int msql_fieldlen (int query_identifier, int i) msql_free_result. ����������� ������ ������� int msql_free_result (int query_identifier) ������� ����������� ������, ���������� ������� ������� query_identifier, ������������ ��������.
msql_list_fields. ��������� ������������ ����� � ���������� ������� int msql_list_fields (string database, string tablename) ������� ���������� ������ ����� ������� ������� tablename �� �� database, ������� ����� ������������ ��� ��������� ���������� � ���� �����, ��������� � �������, � ������� �������: msql_fetch_field() msql_field_flags(), mysql_field_len(), mysql_field_name(), � mysql_field_type().
��������, ��� ������ ������������ �1, � ����� � ���������� $phperrmsg ����������� ��������� �� ������, � (���� ������� �� ���� ������� � ���������� @, ��) ��������������� ��������� �� ������.
��. �����: msql_error().
msql_error. ��������� ��������� �� ������ ��������� ������� msql string msql_error () ���������� ��������� �� ������, ������������ � ���� ���������� ��������� ������� mSQL, ��� ������ ������, ���� ������ �� ���������. ����� ������, ������������ ��� ��������� � MySQL, ���������� � ���� ��������������, �� ������ ������������� ������ ����� �������� ��������������.
PostgreSQL Postgres, ���������� ������������� � UC Berkeley Computer Science Department, ������� ����� �� ������ �� ������������ ��������-����������� ��������, ��������� ������ � ��������� ������������ ��. ��� ������������ ���� SQL92/SQL3, ����������, � ���������� �����. PostgreSQL ���������������� ��������� � � �������� �����. ��.: http://www.postgresql.org/.
������� � ������ 6.3 (03/02/1998) PostgreSQL ���������� ������ unix-������� (����� ������ ������������ � ���� /tmp/.s.PGSQL.5432). ����� � ������� ����� ���� ������������ ����� TCP/IP, postmaster ���������� ��������� � ������ ‘-i’ (�������� ����������: �listen on TCP/IP sockets as well as Unix domain sockets�).
����� � ������� ����������� ��������� ����������� � ��������� ����������, �� ������ ��� ����������� � ���� ������:
$conn = pg_Connect(«host=myHost port=myPort tty=myTTY options=myOptions user=myUser password=myPassword dbname=myDB»);
��� ������������� ������� ���������� ������� �������� �� ���������� �������� ������ ������ ����������. ���� ���������� ���������� � ������� begin � ����������� ��������� commit ��� end. ������ ���������� ����������� ��������� rollback ��� abort.
pg_connect. ����������� � ������� PostgreSQL int pg_connect (string conn_string) ���������� ���������� ����������� � �� (������������ ������������ ���������), ��� false ��� ������.
� ��������� ����������� ����� �����������:
host, port, tty, options, user, password, dbname.
���������� ���������:
$conn = pg_connect («host», «port», «options», «tty», «dbname»).
��. �����: pg_pconnect().
pg_close. �������� ����������� bool pg_close (int connection) ��������� ��������� ����������� � ���������� true (��� false ��� ������).
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������.
��������, ���������� �����������, ��������� �������� pg_pconnect() �� �����������.
pg_pconnect. �������� ����������� ����������� � ������� PostgreSQL int pg_pconnect (string conn_string) ���������� ���������� ����������� ����������� � �� (������������ ������������ ���������), ��� false ��� ������. � ��������� ����������� ����� �����������: host, port, tty, options, user, password, dbname.
��������, ���������� ����������� �� ����������� ��� ���������� ������� � �������� ��������������� ���� PHP �������� � ������ (���, ��� ��� ��������� ������� ������� ���������� ���������� �����������, ������������ ��� ���������).
���������� ���������:
$conn = pg_pconnect («host», «port», «options», «tty», «dbname»).
��. �����: pg_connect().
pg_host. ��������� ����� ������� � �������� ������������ ����������� string pg_host (int connection_id) ���������� �������� ����� host, ��������� ��� �����������.
pg_port. ��������� ������ ����� ������������� ������������ int pg_port (int connection_id) ���������� �������� ����� port, ��������� ��� ����������� (��� �5432�).
pg_tty. ��������� ����� ��������� TTY ������������ ����������� string pg_tty (int connection_id) ���������� ��� ������ ������ � ������� ������ ���������� ���������� ���������� ��� ���������� �����������.
pg_options. ��������� ����� ����������� string pg_options (int connection_id) pg_dbname. ��������� ����� ������������ �� string pg_dbname (int connection) ��� ������ ���������� false.
pg_set_client_encoding. ��������� ��������� ������������ �������� int pg_set_client_encoding ([int connection, string encoding])
���������� 0, ��� -1 ��� ������. encoding ����� ��������� ��������:
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL, LATINX (X=1. 9), KOI8, WIN, ALT, SJIS, BIG5, WIN1250.
������� ������� PostgreSQL-7.0 ��� ������.
����� ������� ���������� pg_setclientencoding().
��. �����: pg_client_encoding().
pg_client_encoding. ��������� ��������� ������������ �������� string pg_client_encoding ([int connection])
������������ ���� �� ��������:
SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL, LATINX (X=1. 9), KOI8, WIN, ALT, SJIS, BIG5, WIN1250.
������� ������� PostgreSQL-7.0 ��� ������.
����� ������� ���������� pg_clientencoding().
��. �����: pg_set_client_encoding().
pg_trace. ���������� ����������� ����������� bool pg_trace (string filename [, string mode [, int connection]]) ������� ��������� �������������� ������ ������ ����������� ����� �������� PostgreSQL � ��� ���������� ������ � ���� ������� filename. ����� ������������ ��� ����������� ���������� �������� ���������� �������� ������������ PostgreSQL. � ���������� ������, ������� ������, ���������� � ���� ����� ����� ���� ������� � ������� �������: grep ‘^To backend’ trace.log.
��������� filename � mode �� ��, ��� � � ������� fopen() (mode �� ��.: ‘w’), connection ���������, ����� ����������� ������� ������������ (���� �� �������, �� ������������ ��������� ��������).
���������� true ���� filename ������� ������, ��� false ��� ������.
��. �����: fopen() � pg_untrace().
pg_untrace. ������ ����������� ����������� bool pg_untrace ([int connection]) ������������� �������, ������� �������� pg_trace(). �������� connection ���������, ����� ����������� ������� ������������ (���� �� �������, �� ������������ ��������� ��������). ������ ���������� TRUE.
��. �����: pg_trace().
pg_exec. ���������� ������� int pg_exec (int connection, string query) �������� ������ query, ��� ����������� connection.
���� ��� ��� ���������� ������� ��������� ������, �� ������� ���������� FALSE. �������� ����������� ������ ����� �������� pg_errormessage().
���� ������ ������� ����������, �� ������������ ����� �������, ������� ����� ���� ��������� ���������:
pg_result() � �������� ������� ������ ������� pg_fetch_array() � ������� ������ � ������ pg_fetch_row() � ������� ������ � ������������ ������ pg_fetch_object() � ������� ������ � ������ ����� ��������, ������� ������� ���� ���������� �������� SELECT, ����������� ������� pg_num_rows(); � ����� �������� ������� ������� ���� �������� � ���������� ���������� �������� DELETE, INSERT, REPLACE, ��� UPDATE, ����������� ������� pg_cmdtuples().
����� ��������� ����������� �������, �� ����� ���� ������ �������� pg_free_result(). ���� � ���� ��� �������������, ��� ��� ������� ������������� ������������� ��� ���������� �������.
pg_put_line. ��������� ������� ������ bool pg_put_line ([resource connection_id, string data]) ��� ��������� ��������� ��������� ���������� � �� PostgreSQL ��������� ����� ���������������� ��������� ����� ����� ����� ����� ������. ���������� true, ��� false ��� ������.
����� ������ (������ ��) ����������� �������� «\n�, � ���� ����������� ������ ��������� «\t�. ���������� ������ ���� ������� ���� �������� «\.» ��� ��������, ��� ������ �������� �������� ������.
��. �����: pg_end_copy().
pg_end_copy. ������������� �������� ������� bool pg_end_copy ([resource connection]) ������� ������� ��������, ����� ���� ��� �������� pg_put_line() ��������� �������� ������ ������� PostgreSQL (��� ���� ����� ������������� ���������� ������). ���������� true, ��� false ��� ������.
��. �����: pg_put_line().
pg_numrows. ��������� ����� ������������ ������� int pg_numrows (int result_id) ���������� ����� �������, ������������ ��������� SELECT. ���������� ������ ������������ ������� (�������� result_id) ������ ���� ������� �� ������� pg_exec(). ����������.
pg_numfields. ��������� ����� ����� � ������ ������� int pg_numfields (int result_id) ���������� ����� ����� (��������) � ������ �������, ������������ �������� pg_exec(); ��� -1 ��� ������.
pg_cmdtuples. ��������� ����� ���������� ������� � �� int pg_cmdtuples (int result_id) ������������ ����� ������� (���������), ���������� � ���������� ���������� �������� DELETE, INSERT, REPLACE, ��� UPDATE. ���� ��������� ����������� �� ���� ���������� 0.
pg_freeresult. ����������� ������ ������� int pg_freeresult (int result_id) ������� ����������� ������, ���������� ������� ������� result_id, ������������ ��������. �� ������� ������������ ������, ���� ��������� ��������� ������, ��� ��� ������ ������������� ������������� ��� ���������� �������.
pg_result. ��������� ������������� �������� ������ ������� mixed pg_result (int result_id, int row_number, mixed fieldname) ������� ���������� �������� �� ������ �������, ������������� �������� pg_Exec(). ��������� row_number � fieldname ��������� �������������� ����� ������ (������) � ���� (�������). ��������� ���������� �� 0. ���� ����� ��������� ��� ������ ��� �������.
PostgreSQL ����� ����� ���������� ����� ������ � PHP �������������� ������ ��������. ���� integer, boolean � oid ������������ ��� ������������� ��������.
��� ����� float, � real ����� ������������ ��� ������� ��������. ��� ��������� ���� (������� �������) ������������ � ���� ����� � ��� �� �������, ��� � � ��������� psql.
pg_fetch_array. ��������� ������ � ������ array pg_fetch_array (int result, int row [, int result_type]) ���������� ������, ��������������� ������ � ������� row, �� ������ ������� result, ������������ ��������; ��� false ���� ����� ������ �� ������� (����� �������� ��������������).
������ ������� �������� ����������� ������� pg_fetch_row(), � ��� ����� ���������� ������������ ��� ������������� ������ (��� ������������). ��� ������������� ������� ����� ����������� � ��������� result_type ����� �� ��������: PGSQL_NUM, PGSQL_ASSOC, PGSQL_BOTH (�� ���������).
� ������������� �������� ��������� ������ ����� ����� (��� ������ � ������ ��������).
��������, ��� ������� �� ����������� ���������, ��� pg_fetch_row(), �� ������������� �������������� ����������������.
��. �����: pg_fetch_row() pg_fetch_row. ��������� ������ � ������������ ������ array pg_fetch_row (int result, int row) ���������� ������, ��������������� ������ � ������� row, �� ������ ������� result, ������������ ��������; ��� false ���� ����� ������ �� �������.
��. �����: pg_fetch_array(), pg_fetch_object(), pg_result().
pg_fetch_object. ��������� ������ � ��������� ������� object pg_fetch_object (int result, int row [, int result_type]) ���������� ������, � ��������� �������� ��������� ���� ������� ������; ��� false ������� ����� �� �������.
�� �������� ������� ��������� pg_fetch_array(), � ����� ��������� pg_fetch_row().
H1Failed connecting to postgres database /H1 PRE ��. �����: pg_fetch_array() � pg_fetch_row().
pg_fieldname. ����������� ����� ���� string pg_fieldname (int result_id, int field_number) ���������� ��� ���� �� ��� ������ � ������ �������. ��������� ���������� � 0.
pg_fieldnum. ����������� ������ ���� int pg_fieldnum (int result_id, string field_name) ���������� ����� ���� � ������ ������� �� ��� �����; ��� �1 ��� ������.
pg_fieldtype. ����������� ���� ���� string pg_fieldtype (int result_id, int field_number) pg_fieldprtlen. ����� �������� � ���� int pg_fieldprtlen (int result_id, int row_number, string field_name) ���������� ����������� ����� ������������� � ���� �������� � ������ (����� ��������. ���������� �1 ��� ������.
pg_fieldsize. ���������� ������ ���� int pg_fieldsize (int result_id, int field_number) ���������� ������ � ������, ��� �������� �1 ��� ����� ���������� �����. ��� ������ ������������ false.
pg_fieldisnull. ����� �� �������� ���� NULL?
int pg_fieldisnull (int result_id, int row, mixed field) ���������� 0, ���� ���� field � ������ row �� �������� �������� NULL; ��� 1, � ��������� ������. ���� ����� ���� ������� ������ ��� �������.
pg_getlastoid. ��������� �������������� ���������� ������� int pg_getlastoid (int result_id) ������������ ��� ��������� oid ������������ ������������ �������, ��������� SQL �������� INSERT � ������� pg_exec(). ���������� ������������� �������� oid; ��� -1 ���� ��������� ������� � pg_exec() �� ���� INSERT.
pg_locreate. �������� �������� ������� int pg_locreate (int conn) ������� �Inversion Large Object� � ���������� ��� oid. conn �������� ���������� �����������. ������ ������� PostgreSQL: INV_READ, INV_WRITE, � INV_ARCHIVE �� ��������������, ������ ������ ��������� � �������� ��� ������ � ������. INV_ARCHIVE ��� ������ �� ������ PostgreSQL (��� ������ 6.3 � ������).
pg_loopen. �������� �������� ������� int pg_loopen (int conn, int objoid, string mode) ��������� �Inversion Large Object� � ���������� ��� �������� ����������.
�������� objoid ��������� �������������� oid (������������� �������), � mode ����� �������, ������� ����� ��������� ��������: �r�, �w�, ��� �rw�.
�� ���������� �����������, �� ������ �������������� ������� ������.
pg_loclose. �������� �������� ������� void pg_loclose (int fd) � ��������� fd ����������� ���������� �������, ���������� �� pg_loopen().
pg_loimport. ������ �������� ������� �� ����� int pg_loimport (int file [, int connection_id]) ��� �������������� ����� (����) ����������� � ��������� filename. ���������� ������������� ���������� ������� (oid), ��� FALSE ��� ������. �� ���������, ��� ������ � �������� ��������� ������ ��������� ������ ����������.
pg_loexport. ������� �������� ������� � ���� bool pg_loexport (int oid, int file [, int connection_id]) ��� ����� (����) ����������� � ��������� filename, � ������������� ������� � oid. ���������� true, ��� false ��� ������. �� ���������, ��� ������ � �������� ��������� ������ ��������� ������ ����������.
pg_loread. ������ �������� ������� string pg_loread (int fd, int len) ���������� ������, ����������� �� ������� ��������� ��� ������������ fd. � ��������� len ����������� ������������ ����� ������������ ������.
pg_loreadall. �������� �������� ������� � ������� ��� ����������� ��������������� � ����� ������ (��������) void pg_loreadall (int fd) ������������ � �������� ��� ������ �������� ������ (������� � �����).
pg_lowrite. ������ �������� ������� int pg_lowrite (int fd, string buf) ���������� ������ �� ������ buf � ������, ��������� ������������ fd; � ���������� ����� ���������� ���������� ����, ��� false ��� ������.
pg_lounlink. �������� �������� ������� void pg_lounlink (int conn, int lobjid) pg_errormessage. ��������� ���������� ��������� �� ������ string pg_errormessage (int connection) Microsoft SQL Server ����� ��� ������� � Microsoft SQL 6.5 � 7.0 �������������� ������ ������, �� ��� ���������� � ����.
mssql_connect. ����������� � ������� MS SQL int mssql_connect ([string servername [, string username [, string password]]]) ���������� ���������� ����������� � ������� MS SQL, ��� false ��� ������.
�������� servername ������ ���� �������������� ������, ������������ � ����� ‘interfaces’.
���� ������� �������� ���������� � ���� �� �����������, ����� ����������� �� ���������, � ������������ ������������� ����������.
����������� � ������� ����������� ��� ���������� ������� ��� �����, ���� ���� ���������� ������� mssql_close().
��. �����: mssql_pconnect(), mssql_close().
mssql_close. �������� ����������� � MS SQL Server int mssql_close ([int link_identifier]) ���������� true, ��� false ��� ������.
������������� ������������ ����������� ����������� � ���������, ���� ��� �� ���������, �� ����������� ���������, �������� ������ �������� �����������.
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������. ��������, ���������� �����������, ��������� �������� mssql_pconnect() �� �����������.
��. �����: mssql_connect(), mssql_pconnect().
mssql_pconnect. �������� ����������� ����������� � ������� MS SQL int mssql_pconnect ([string servername [, string username [, string password]]]) ���������� ���������� ����������� �����������, ��� false ��� ������.
Mssql_pconnect() ��������� ������� Mssql_connect() � ����� ����������:
����� ������������, ������� �������� ��������� ������� �� ��� �������� (����������) ����������� � ����������� (��� �������, ������������ � ������), ������������ ���������. ���� ����� ����������� ��������������, �� ������������ ��� �������������, ������ �������� ������ �����������.
��� ���������� �������, ����������� �� �����������, � �������� �������������� ��� ����������� �������������. (������� mssql_close() �� ����� ������� �����������, ��������� � ������� mssql_pconnect()).
mssql_select_db. ����� �� MS SQL int mssql_select_db (string database_name [, int link_identifier]) ���������� true, ��� false ��� ������.
������������� �� � ������ database_name �������� ��� �������� ����������� ��� ���������� � link_identifier. ���� ����������� �� �������, �� �������� ���������� ������� mssql_connect() � ����������� �� ���������.
����������� �������, ����������� ��������, ����� ���������� ������ ��.
��. �����: mssql_connect(), mssql_pconnect(), � mssql_query() mssql_query. ���������� ������� � �� int mssql_query (string query [, int link_identifier]) �������� ������ ������� �������� ��, ��� �������� (���������� ���������) ����������� ��� ���������� � link_identifier. ���� ����������� �� �������, �� �������� ���������� ������� mssql_connect() � ����������� �� ���������.
���������� ���������� ������ ������������ �������, ��� false ��� ������.
��. �����: mssql_select_db(), � mssql_connect().
mssql_num_rows. ��������� ����� ������������ ������� int mssql_num_rows (string result) ���������� ����� ������� � ������ ������������ �������� result, mssql_query().
��. �����: mssql_query(), � mssql_fetch_row().
� ������� ���������� ������ ����������� ������� mssql_affected_rows() � ��� ����, ����� �������� ������� ������� ���� �������� ��������� UPDATE,
INSERT ��� DELETE, ���������� ������������ ��� �������� ����������:
$rsRows = mssql_query(«select @@rowcount as rows», $db);
$rows = mssql_result($rsRows, 0, «rows»);
mssql_free_result. ����������� ������ ������� int mssql_free_result (int result) ������� ����������� ������, ���������� ������� ������� result, ������������ ��������. �� ������� ������������ ������, ���� ��������� ��������� ������, ��� ��� ������ ������������� ������������� ��� ���������� �������.
mssql_result. ��������� ������������� �������� ������ ������� int mssql_result (int result, int i, mixed field) ���������� ���������� ������ �� ������ ������� result.
� ��������� row ����������� ����� ������ (��������� ���������� � 0), � ��������� field ����� ������� ������ ���� (�����), ��� ���� ��� ������ ��� ���� (����:
����_�������.���_�����) ��� ����� ���� (��� �������� ���� ‘SELECT foo AS bar FROM. ‘).
��� ������ � �������� �������� ������� ����� ������ ����������� ������� ���� _fetch_ (��. ����). ����� ��������, ��� ��������� ������� �������������� ������� ���������.
�� ������� �������� ������� mysql_result() � ��������� � ������� ��������� ��������� ������ �������.
������������� ������������ �������������� �������: mssql_fetch_row(), mssql_fetch_array(), � mssql_fetch_object().
mssql_data_seek. ����������� ����������� ��������� ������ int mssql_data_seek (int result_identifier, int row_number) ��� ������ ������ ������� mssql_fetch_row() (��� ��������), ���������� ������ ������ ��������� �� ���������. ������ ������� ��������� �������� ���������� ������ � ������ ������� result_identifier, ���, ����� �� �������� �� ������ � ������� row_number (��������� ���������� � 0).
��� ���������� true, ��� false ��� ������.
��. �����: mssql_data_seek().
mssql_fetch_array. ��������� ������ � ������ array mssql_fetch_array (int result) ���������� ������, ��������������� ������� ������, �� ������ ������� result, ������������ ��������; ��� false ������� ����� �� ������� (��� ���� ������ ������ ������������ �� ���������).
������ ������� �������� ����������� ������� mysql_fetch_row(), � ��� ���������� ������������ �����������-������������� ������. ������ � ��������� ������� ����� �������������� ��� ����� ����� �����, ��� � �� �� ������.
��������, ��� ������� �� ����������� ���������, ��� mysql_fetch_row(), �� ������������� �������������� ����������������.
��. �����: mssql_fetch_row().
mssql_fetch_row. ��������� ������ � ������������ ������ array mssql_fetch_row (int result) ���������� ������, ��������������� ������� ������, �� ������ ������� result, ������������ �������� (����������� ����� ������� ���������� ��������� ������); ��� false ������� ����� �� �������.
������ ���� ������ ����������� � ������������ �������� �������, (��������� ���������� � 0).
��. �����: mssql_fetch_array(), mssql_fetch_object(), mssql_data_seek(), mssql_fetch_length(), � mssql_result().
mssql_fetch_object. ��������� ������ � ��������� ������� int mssql_fetch_object (int result) ���������� ������, � ��������� �������� ��������� ���� ������� ������; ��� false ������� ����� �� �������.
�� �������� ������� ��������� mysql_fetch_array(), � ����� ��������� mysql_fetch_row().
��. �����: mssql_fetch_array() � mssql_fetch_row().
mssql_num_fields. ��������� ����� ����� � ������ ������� int mssql_num_fields (int result) ��. �����: mssql_query(), mssql_fetch_field(), � mssql_num_rows().
mssql_fetch_field. ��������� ���������� � ���� ������ � ��������� ������� object mssql_fetch_field (int result [, int field_offset]) ���� ����� ���� field_offset �� ������, ��� ������ ������ ������� ������������ �������� ���������� ���� �� ������ ������� result.
������������ ������ ����� ��������� �������� (� �������� ����������):
name � ��� ����. ���� ���� — ��������� ���������� �������, ��� ������������ � ���� computed#N, ��� #N � ���������� �����.
column_source � ��� �������, ������� ����������� ���� max_length � ������������ ������ ���� numeric � 1, ���� ���� �������� ��. �����: mssql_field_seek().
mssql_field_seek. ����������� � ���������� ���� int mssql_field_seek (int result, int field_offset) ������������ � ���������� ������ ����. �, ���� ��� ��������� ������ mssql_fetch_field() �� ����������� ����� ����, ����� ���������� ���.
��. �����: mssql_fetch_field().
InterBase InterBase � ���������� ��, ������������ Borland/Inprise. http://www.interbase.com/.
��������� ������ InterBase 6 ���������������� ���������.
��� �� ���������� ��������� ������� (‘) ��� �����������, �� �������� � �� Sybase, ���� � ���� php.ini �������� �����:
magic_quotes_sybase = On ibase_connect. ����������� � ������� �� InterBase int ibase_connect (string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]]) �������� database ������ ��������� ���� � ����� �� �� �������. ���� ������ �� ���������, �� ������ �������������� �������: ‘hostname:’ (TCP/IP), ‘//hostname/’ (NetBEUI) ��� ‘hostname@’ (IPX/SPX), � ����������� �� ������������ ���������.
username � password ����� ����� ���� ������� ������� ������������ PHP ibase.default_user � ibase.default_password. charset ���������� ���������, ������������ �� �� ���������. buffers � ����� ������� ������������ ��� ����������� �� (��� �������� 0 ��� �� ��������, ������ ����� ������������ ����������� ��������). dialect ��������� ������������ ������������ ������� SQL (�� ��., ����� �������, �������������� ���������� ������).
ibase_connect(‘localhost:/usr/db/db.gdb’,’SYSDBA’,’masterkey’, ‘ISO8859_1’, ‘100’, ‘1’ ) ;
���� ������� �������� ���������� � ���� �� �����������, ����� ����������� �� ���������, � ������������ ������������� ����������.
� ����� ������� ������� ��������� ����������� �������� ibase_close(), �� ��� ����� �� ������, ��������� PHP ������������� ��������� ��� (������������) ����������� ��� ���������� �������.
��. �����: ibase_pconnect().
ibase_close. ���������� �� ������� �� InterBase int ibase_close ([int connection_id]) ���������� true, ��� false ��� ������. ������� ���������� (���� �������) �����������, � ��������� ����������.
������������� ������������ ����������� ����������� � ���������, ���� ��� �� ���������, �� ����������� ���������, �������� ������ �������� �����������.
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������.
��������, ���������� �����������, ��������� �������� mysql_pconnect() �� �����������.
ibase_pconnect. �������� ����������� ����������� � ������� �� InterBase int ibase_pconnect (string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])
ibase_pconnect() ��������� ������� ibase_connect() � ����� ����������:
����� ������������, ������� �������� ��������� ������� �� ��� �������� (����������) ����������� � �����������, ������������ ���������. ���� ����� ����������� ��������������, �� ������������ ��� �������������, ������ �������� ������ �����������. ��� ���������� �������, ����������� �� �����������, � �������� �������������� ��� ����������� �������������. (������� ibase_close() �� ����� ������� �����������, ��������� � ������� ibase_pconnect()).
��. �������� ���������� �: ibase_connect().
ibase_prepare. ���������� ������� ��� ������������ ���������� int ibase_prepare ([int link_identifier, string query]) � ���������� ����� ������� ���� ������ ����� ��������� �������� ibase_execute(), ������ ��� ���������.
ibase_execute. ���������� ��������������� ������� int ibase_execute (int query [, int bind_args. ]) ��������� ������ query, �������������� �������� ibase_prepare(). ��� ����� ����������, ��� ������������� ��� ���������� ����� �������� �������� ibase_query(), ���� ���� ������� ����������� ������ ������������ �����������.
ibase_free_query. ����������� ��������������� ������� int ibase_free_query (int query) ���������� ������, �������������� �������� ibase_prepare().
ibase_query. ���������� ������� � �� InterBase int ibase_query ([int link_identifier, string query [, int bind_args]]) ���������� ���������� ������ ������� ��������������: ibase_fetch_row(), ibase_fetch_object(), ibase_free_result() � ibase_free_query().
���� ������� ������������ ����������� �������� ���������� �������, �������������� ������������ ������� ibase_prepare() � ibase_execute().
ibase_trans. ������ ���������� int ibase_trans ([int trans_args [, int link_identifier]]) ibase_commit. ���������� ���������� int ibase_commit ([int link_identifier, int trans_number]) ��������� ���������� trans_number, ��������� ibase_trans().
ibase_rollback. ������ ���������� int ibase_rollback ([int link_identifier, int trans_number]) �������� ���������� trans_number, ��������� ibase_trans().
ibase_free_result. ����������� ������ ������� int ibase_free_result (int result_identifier) ����������� ������, ������� ������� �������, ������������ ibase_query().
ibase_fetch_row. ��������� ������ � ������������ ������ array ibase_fetch_row (int result_identifier) ���������� � ������� ��������� ������ �� ������ ������������� ibase_query().
ibase_fetch_object. ��������� ������ � ��������� ������� object ibase_fetch_object (int result_id) ���������� � ��������� ������-������� ��������� ������ �� ������ result_id ������������� ibase_query() ��� ibase_execute().
php $dbh = ibase_connect ($host, $username, $password);
$stmt = ‘SELECT * FROM tblname’;
$sth = ibase_query ($dbh, $stmt);
while ($row = ibase_fetch_object ($sth)) < print $row-email. "\n";
��. �����: ibase_fetch_row().
ibase_field_info. ��������� ���������� � ���� ������ � ������� array ibase_field_info (int result, int field number) ���������� ������, ���������� ��������: name, alias, relation, length, type.
$rs=ibase_query(«Select * from something»);
> ibase_timefmt. ��������� ������� ������������ ���� � ������� int ibase_timefmt (string format [, int columntype]) ��������� ���� ���� � ������� ������������� �-�������� strftime(), � � ������� ������ ������� ����� ���������� ��� �������������� ������������ ��������� ������. � ������ format ������ ������, �� �������� ������������ ��������������. �������� columntype ���������, ������ ����� ����� ��������������� (������ � InterBase ������ 6 ��� ����) � ����� ��������� ����������� �������� IBASE_TIMESTAMP (�� ���������), IBASE_DATE � IBASE_TIME.
��������� ����� ���������� ������� ������������ (php.ini):
ibase.timestampformat, ibase.dateformat � ibase.timeformat.
ibase_num_fields. ����� ����� � ������ ������� int ibase_num_fields (int result_id) � ��������� ����� ������� ��� �� ��������������.
��. �����: ibase_field_info().
��������� ��������� �� ������ string ibase_errmsg (void ) ���� BLOB � PHP ������� ��������� ������� ��� ������ � ������ BLOB �� InterBase (������������ ��� ��� ���� �����������):
ibase_blob_create � ������� ���� BLOB, ������� ����� ����� ���� ��������� �������� (������������ ���������� ���������� ��� �������� �������) ibase_blob_open � ��������� ������������ �������� ���� BLOB ��� �������� ibase_blob_close � ��������� ���� BLOB ibase_blob_add � ��������� � ����� ���� BLOB ������ ibase_blob_import � ���������� ���������� ��������� ����� � ���� BLOB ibase_blob_get � ������ ��������� ���� BLOB ibase_blob_echo � ������� ���������� ���� BLOB ibase_blob_info ibase_blob_cancel ��������� ������������ ����������� �� ���� �������� �������� ������ �� ����������, �� ���������� �����.
Informix ������������ ������ ���������� Informix ��������� �������� � �� Informix (IDS)
7.x, SE 7.x, Universal Server (IUS) 9.x � IDS 2000. ��������� IDS 7.x ������ (������� ���� BYTE � TEXT), �� ��� IUS 9.x ��� �� ��������� ��������� ����� SLOB � CLOB.
��� ���������� ���������� ESQL/C (������ 7.2x ��� ���� ������ ������� � Informix Client SDK) ��� ���������� �������� Informix. ����� ������ ���� ����������� �������� ���������� ������� INFORMIXDIR � ��������� ���������� $INFORMIXDIR/bin � ������ ����� PATH �� ������� ������� configure (� ������ -with_informix=yes). ��������������� ���������� ������ ���������� � ��������� ����� ���� �������������� ���������� ��������� ���������� IFX_LIBDIR, IFX_LIBS � IFX_INCDIR.
�� ����� ���������� ���������� ������� INFORMIXDIR, INFORMIXSERVER � PATH ������ ���� ��������� ����������������.
��� ����� BLOB (TEXT � BYTE) �������� ������������ �� ��������������. �� ���������� ����� �������� � ��������� ���������� (���� ����������� ifx_blobinfile(0);) �������� ifx_get_blob($blob_id); ��� ��������� � ����� ����������� �������� (���� ifx_blobinfile(1);) ifx_get_blob($blob_id);.
ifx_connect. ����������� � ������� �� Informix int ifx_connect ([string database [, string user [, string password]]]) ��� ��������� �������������, � ���� �� �� ���������, �� ������������ �������� �� ����� ������������: ifx.default_host (���� �� �������, ���������� Informix ���������� �������� ��������� ���������� INFORMIXSERVER), ifx.default_user, ifx.default_password. ������������ ���������� ����������� ��� FALSE ��� ������.
���� ������� �������� ���������� � ���� �� �����������, ����� ����������� �� ���������, � ������������ ������������� ����������.
� ����� ������� ������� ��������� ����������� �������� ifx_close(), �� ��� ����� �� ������, ��������� PHP ������������� ��������� ��� (������������) ����������� ��� ���������� �������.
��. �����: ifx_pconnect(), � ifx_close().
ifx_pconnect. �������� ����������� ����������� � ������� �� Informix int ifx_pconnect ([string database [, string userid [, string password]]]) ������������ ���������� ����������� ��� FALSE ��� ������.
ifx_pconnect() ��������� ������� ifx_connect() � ����� ����������:
����� ������������, ������� �������� ��������� ������� �� ��� �������� (����������) ����������� � ����������� (��, ������������, ������), ������������ ���������. ���� ����� ����������� ��������������, �� ������������ ��� �������������, ������ �������� ������ �����������. ��� ���������� �������, ����������� �� �����������, � �������� �������������� ��� ����������� �������������. (������� ifx_close() �� ����� ������� �����������, ��������� � ������� ifx_pconnect()).
��. �����: ifx_connect().
ifx_close. �������� ����������� � Informix int ifx_close ([int link_identifier]) ������ ���������� true.
������������� ������������ ����������� ����������� � ���������, ���� ��� �� ���������, �� ����������� ���������, �������� ������ �������� �����������.
���������� ������������� ������ ������� �� �������� ������������, ��� ��� PHP ������������� ��������� ��� ���������� ������������ ����������� ��� ���������� �������.
���������� �����������, ��������� �������� ifx_pconnect() �� �����������.
��. �����: ifx_connect(), � ifx_pconnect().
ifx_query. ���������� ������� � �� Informix int ifx_query (string query [, int link_identifier [, int cursor_type [, mixed blobidarray]]]) �������� ������ ������� �������� ��, ��� �������� (���������� ���������) ����������� ��� ���������� � link_identifier. ���� ����������� �� �������, �� �������� ���������� ������� ifx_connect() � ����������� �� ���������.
���������� ���������� ������ ������������ �������, ��� false ��� ������.
��� �������� �SELECT� �������������� ���������� cursor_type ����� ������� ����������� ��� ������� (�������� ����������� ������� ������ �� �������� IFX_SCROLL, IFX_HOLD).
� ����������� �� ���� ������� ����� ������������ (����������) ������� ��� �����������) ����� �������� �������� (��������������� ifx_affected_rows().
���� � ������� ���������� ���� BLOB (BYTE ��� TEXT), �� � ��������� (�������) blobidarray ����������� ����������� (blob ids), � � ������� ������ �� �������� �������� ���� «?».
���� ���������� ����� TEXT (��� BYTE) ���������, ����� ������������ ������� ifx_textasvarchar(1) � ifx_byteasvarchar(1), ��� ��������� �������� � ����� ������ (�������� �� ����������), ��� ���� �� ��� ���� �������� (�� ��������) ������ VARCHAR, �� �������� � blob ������������. � ��������� ������ �������� ������������ �������������� �������.
� �������� ifx_textasvarchar(0) � ifx_byteasvarchar(0) (�� ���������), ������� ������� ���������� ��� ����� BLOB �� ����������� (����� �����). � ���������� ����� �������� ������������ ���������.
// 1. «orders» html ifx_textasvarchar(1); // use «text mode» for blobs $res_ , $conn_id);
��. �����: ifx_connect().
ifx_prepare. ���������� SQL-������� ��� ������������ ���������� int ifx_prepare (string query, int conn_id [, int cursor_def, mixed blobidarray]) ���������� ����������, ������������ � ������� ifx_do(). ��� �������� �SELECT� �������������� ���������� cursor_type ����� ������� ��� ������� (�������� ����������� ������� ������ �� �������� IFX_SCROLL, IFX_HOLD).
���� � ������� ���������� ���� BLOB (BYTE ��� TEXT), �� � ��������� (�������) blobidarray ����������� ����������� (blob ids), � � ������� ������ �� �������� �������� ���� «?».
���� ���������� ����� TEXT (��� BYTE) ���������, ����� ������������ ������� ifx_textasvarchar(1) � ifx_byteasvarchar(1), ��� ��������� �������� � ����� ������ (�������� �� ����������), ��� ���� �� ��� ���� �������� (�� ��������) ������ VARCHAR, �� �������� � blob ������������. � ��������� ������ �������� ������������ �������������� �������.
�������������� ������� ��������� ������ ��������� ����� ���������� ������� ������� �������� ifx_affected_rows().
��. �����: ifx_do().
ifx_do. ���������� ��������������� ������� int ifx_do (int result_id) ���������� true, ��� false ��� ������.
��. �����: ifx_prepare(), ifx_affected_rows().
ifx_error. ��������� ���� ������ ��������� �������� Informix string ifx_error(void);
������������ ������ �������� ������ ������������� ��������� �������:
x [SQLSTATE = (��� �����) (��� �����) SQLCODE=cccc] ��������� x � ���� �� ��������, ����������� � ��������� ������.
������ � ��� ������.
N � ������ ��� ������.
���� x-������ �� ������, �� SQLSTATE � SQLCODE ��������� ������ ������ (��.
��. �����: ifx_errormsg() ifx_errormsg. ��������� �������� ������ ��������� �������� string ifx_errormsg ([int errorcode]) ���� � ��������� ������� ��� ������, �� ����� �������� �� ��������.
��. �����: ifx_error() ifx_affected_rows. ��������� ����� ���������� ��� ������������ ������� int ifx_affected_rows (int result_id) � ��������� ����������� ���������� ������ �������, ������������ �������� ifx_query() ��� ifx_prepare().
��� �������� ���� insert, update � delete ������������ ����� ���������� �����������, ����������, ��������� ������� (�������� sqlerrd[2]). ��� �������� ������� select, ��� �������������� ����� (sqlerrd[0]), ������� �� ������ �����.
> $rowcount = ifx_affected_rows ($rid);
��. �����: ifx_num_rows()
ifx_getsqlca. ��������� ���������� ������� sqlca.sqlerrd[0..5] array ifx_getsqlca (int result_id) � ��������� ����������� ���������� ������ �������, ������������ �������� ifx_query() ��� ifx_prepare(). ������������ ������������� ������, ���������� �������������� ���������� ���������� ������� �������� sqlerrd0. sqlerrd5. ������������� �� �� �������� ����� ��������� �������� �SELECT dbinfo(‘sqlca.sqlerrdx’)».
ifx_fetch_row. ��������� ������ � ������ array ifx_fetch_row (int result_id [, mixed position]) ���������� � ������������� ������� (��������� ������ ����� �����) ������ �� ���������� ������� ��������� ��� (������������� ifx_query() ifx_prepare()), ��� false ���� ������� ������ �� �������.
��� ����� Blob ������������ �� �������� ��������������, ������� ����� ������������ � ������� ifx_get_blob() (���� �������, �� �������������� ifx_textasvarchar(1) ��� ifx_byteasvarchar(1)).
�������������� ���������� position ��� SCROLL �������� ����� ������� ����� ������ ������� ����������: �NEXT�, �PREVIOUS�, �CURRENT�, �FIRST�, �LAST� ��� ����������� ����� ������.
����������� ������ (�� ��������� ���������� ��������� ������).
$r . $name, $connid, IFX_SCROLL);
printf («%s = %s,», $fieldname, $fieldvalue);
$row = ifx_fetch_row ($rid, «NEXT»);
ifx_htmltbl_result. ����� ����������� ������� � ������� HTML int (int result_id [, string ifx_htmltbl_result html_table_options]) ���������� ����� ���������� ������� ��� FALSE ��� ������.
�� ������ ��������� ����� ������� �������� ���� table.
$r . $name, $connid, IFX_SCROLL);
ifx_fieldtypes. ��������� ������ ����� ������ ������� array ifx_fieldtypes (int result_id) ���������� ������������� ������ (����� ����� �������� ���������, � SQL ���� ����� � ����������); ��� FALSE ��� ������. � ��������� ����������� ��������� �������.
$types = ifx_fieldtypes ($resultid);
printf(«%s :\t type = %s\n», $fname, $types[$fname]);
> ifx_fieldproperties. ��������� ������ ������� ����� array ifx_fieldproperties (int result_id) ���������� ������������� ������ (����� ����� �������� ���������, � SQL �������� ����� � ����������); ��� FALSE ��� ������. � ��������� ����������� ��������� �������.
�������� ���������� � ����:
�SQLTYPE;length;precision;scale;ISNULLABLE�, ��� SQLTYPE � ��� ���� Informix, (�������� �SQLVCHAR�), � ISNULLABLE = �Y� ��� �N�.
$properties = ifx_fieldproperties ($resultid);
printf («%s:\t type = %s\n», $fname, $properties[$fname]);
> ifx_num_fields. ��������� ����� ����� ������������ �������� int ifx_num_fields (int result_id)
ifx_free_result. ����������� ���������� ������� int ifx_free_result (int result_id) ifx_create_char. �������� char ������� int ifx_create_char (string param) � ��������� ����������� ���������� �������.
ifx_free_char. ����������� char ������� int ifx_free_char (int bid) ���������� true, ��� false ��� ������.
ifx_update_char. ��������� ����������� char ������� int ifx_update_char (int bid, string content) ���������� true, ��� false ��� ������.
ifx_get_char. ��������� ����������� char ������� int ifx_get_char (int b >
����������� ������������ ������������ ����� � ������� ����������� ������� ���� 2015 �. ���������� ������������ ������������ ����� � ������� ����������� ������� ���� 2015 �. ���������� ������������ 1. �������� 1.1 ����� ���������� 1.2 ���� � �������� ������� 2. ������������� ������������� ��� � ���������� ��� ������������� ���������� 2.1 ��������� ������������� ��� 2.2 ������ ������������� � ���������� ���������� 3. ��������� ������������� �������� � ��������� ����� 3.1 ��������� ������. �
�Vozny D. V. ������� �������������� � ���������� ������������ ������ � ����������� ������������ = System of psychocorrection and social rehabilitation for men suffering from alcohol dependence. Journal of Education, Health and Sport. 2015;5(4):102-108. ISSN 2391-8306. DOI: 10.5281/zenodo.16640 http://ojs.ukw.edu.pl/index.php/johs/article/view/2015%3B5%284%29%3A102-108 https://pbn.nauka.gov.pl/works/553292 http://dx.doi.org/10.5281/zenodo.16640 � Formerly Journal of Health Sciences. ISSN. �
����� ����������� ����� � ��������̻ ������� � 57 ������ �����, ��������, ���������, ���������� � �������� 9 ���� 2015 ����, 19:00 ������, ��������� ���., �. 4�, ���. 1 ������� � 2012 ���� � 1 ������, 9 ���� 2015 �������������� ����� � 31 ���� �� 8 ���� 2015 ���� (� 10:00 �� 20:00, ����� ������������) �� ������: ������, ��������� ���., �. 4�, ���. 1 (�. �������� ���) �������, ����� �������� ���������, ���������� � ������� ������ �� ���. (495) 926 4114 �� ����������� �����: info@vnikitskom.ru ��. �
������� �� ������������� � �� ����������� ������ ���� �������� ������ � ������ ������������� � ������������� � �����, ����� ������ ������ ��������. ���� �������� �������� ����� ������ ��� ������! �� ��� ����� �������, ����� ������� �� ��� ��������. � ��� ������ ����� ����� � ���� ����������� � �������������. ����� ������ ����� ��������� ��������, ��� ������ ���� ��� ����� ���������. ������������� � ���������� ������� ��� ������ �����. ���� �� ��� �� ������ �� ��������������� ������� ������. ��. �
��.�. ������ � �� � � �� � � � � � � � � � � � � � ������������� ���� �������������� ������������� �.�. ������ �������������� ������ ������������� ���� 2-� ������� (�����������) ������ �����. ����������� ������ ��� 575+573+519.8 ��� 28.04+22.18 �59 � � � � � � � � � � � � � � 2009 �. ������ �. �. �59 �������������� ������ ������������� ���� [����������� ������] / �. �. ������. � 2-� ���. (��.). � �. : �����. ����������� ������, 2012. � 215 �. : ��., [8] �. ��. ���. � (��������������. �
������ 2013 ����� � ������������ ������������������ ����� ����� ������ ���� ��� ��� ����� ������������, �� ��������� � �������� �����! ���� ����� ������ ����� � ��������, ������� �� ������ ������ �����������. �� ������ ����� ��������� �����, ����� ������� �������� ��������� ����� ����� ������. �� ��������� ������ ������ �� �������, ������� ��� ������ ������� ������� ��� ������ ������ � ����� �����. ��������� ����� ����� ������ ������ ������ � ����� ����������������� ���� ����� ������ � 2011. �
2� �. ������������ � �������� ��������� � ����������������� ��������� ����������� ����������� ������������ �������, ������������ �������� ������������ ����������������� ������������ ������� �� 31.12.2008 � 1755 � ������������ � ���������� ������ ������ ������� ������ 1 1 83, 2 87 ������� ������� ���������� ���������, ������� ������� ������������ 04.04.2012.N2 ��������� ������� ���������. �
������������� ������ �������������. ��������� ������ ������ � ��������� ��������� �������� � ��������� ����������� ��� ������ ������ ��������, �������������� ������������� ��������� �������� ������ ����� ������������ � ������������� ���������� ������� �������� ������ � �������� ���������� ��� ��������� ������ ��������� �������������� �������� �������� ������ � �������� ���������� � ������� (�����) 23 � 25 ������ 2009 �. . �������� � ������� ����������� ��������� � �������� �����������. �
�������� ��������� �.�. ������ ������������� ������������ ����: ����������� � ������� ������������� ��������� � ������ ����������� ����������� ����� ����� ������� ����������� �������� �������� �� ������������� � �������������. �� ������ ������, ����������� ��������� �������� ����������� �������� ������������ ��������� � ������ �������������� � ������������� ������� ������������ ������������. ����� ��������� �������, ������������ ����������� ������������, ������� �������� ����� �� ���������������. �
����������� ��������� �������� ������ ���������� �������������� ��������� ����������������� ���������� ���� �������������� ������������ ����������� ����������� ���������� ���� �� �24� ���� 2015 ���� �� �22� ���� 2015 ���� ���������� ������� �������������� ��������� �������������� ������������ ����������� ����������� ���������� ���� �� �14� ���� 2015 ���� ��������� ���������� ������ �� ������� ����� ������ ���������� ������ ��� 2015�2020 ����� ������ ���������� ����� ��������� ������ 1. ���� �. �
������-��� 2014 ��� ���������� � ������������: ��� ����������� ��������λ ������������ ������� ����� ��������� ������� � ������ �1 � ������, ������� � ��� 1960 ����. �������������: �����������, �� ������. ������: �4. ���������� �������: 48. ��������� ��������� �������: 25-35 ���. ��������� ������� � ������� ���� �������� ��������������� ������� �������, ��������� ������ � ����������� ��������� ���������� � ������ �� ��� ������ �� ����� www.ftbl.ru � � ���������� �����: www.ftbl.ru � ������. �
������-�����. ���������. 17.12.2015 ���� ��-��-�� ������� ����� ��� �� ������ � ������ ���� � ���� ������� �� ������ �������� ��� ������. �� ���������� ������������ �����, ��������� �������, ��� � ���������� �� ������ ���������� ����������� ����������� ���������� ����� ��-���������� ������������ ������������ ������ ��-��-��. �������, ���� ����� �������� � ���������� ������ �� ���������, ����������, �� ����� ������� ���, �������� ��-���������� ���� ������, ����� �� ��������� � ���������. �
�������������� ������������ ������� ������������� �� 12 ��� 1996 �. N 377-� �� ���������� ������� ����� ������������ ������� � ����� ������������ ������� ������ ������ ������ � ���������� �������� ������������� � ��������� ���� ������������ �������, � ������������ � ������� ���������� ��������� �� ������ ���������� ��������� ����� � ������� ���������� ��������� � �������� ����, ������� ������������ ������� ������������� ������������ ������� ������������: 1. �������� ������� ����� ������������. �
������ ������ ������� 3. ����������� ������ ������� �������’���� ������ ��� ������������� ������ � ������� �������) �������. ��������� ��������� ������� ����������� ������ �� ��, ��� � � ���������� ������: t0 ��������� ������ ������, t1 �������� ������ ������, � = t1 t0 ���� ������. ��������� ���������� �������� ������� ����������� ���� �� �� �������� ����� �������, ����������� � ������, � ������� �� ���������� ��� ������������� �� ���������. ������� ��������, �������� ��������� ���������� ���. �
���� �������������� ��ʻ ����� � �������� ���������� ����� �� 2012 ��� (����������� ��������-������) ����������� � ������������ � ��� 14064-1:2006 �����������, 2013 ������������ �����������, ����������� �����: ��� �������������� ��ʻ �������� ������: 01.01.2012 � 31.12.2012 ���������: ����� ����������� ��� ���������� �� ������ � � �������������� � ��� �������������� ��ʻ � ������������ � ������������ ��� 14064-1:2006 ����� ����������. ����� 1. ���������� � ����������� �� ���������������. �
2020 www.os.x-pdf.ru — ����������� ����������� ���������� — ������� ����������
��������� ����� ����� ��������� ��� ������������, ��� ����� ����������� �� �������.
���� �� �� �������� � ���, ��� ��� �������� �������� �� ���� �����, ����������, �������� ���, �� � ������� 1-2 ������� ���� ������ ���.
��� ����� ��� ifx_free_result
������������� �����-������� ������� . ��������.�� . 2011 .
�������� ��� ����� «IFX» � ������ ��������:
IFX � (����. Interactive Financial Exchange �������� (������������) �������������� ������ ���������� �����������, ���������� �� XML. ���������� � ����������� ��������� �������������� � ������ ������ IFX (IFX Forum) �����������, � ������� ����� � ���������
IFX � may refer to: * Interactive Financial Exchange, an open standard financial data protocol * Infineon Technologies AG, a German semiconductor manufacturer * IFX visualization software, a visualization software for simulation data * IFX Networks, a� � Wikipedia
IFX � Infineon Technologies AG Unternehmensform Aktiengesellschaft ISIN � Deutsch Wikipedia
IFX � infliximab � Medical dictionary
IFX � Interactive Financial Exchange � Acronyms
IFX � Interactive Financial Exchange � Acronyms von A bis Z
IFX � abbr. Interface Configuration x � Dictionary of abbreviations
IFX � � infliximab � Dictionary of medical acronyms & abbreviations
IFX � abbr. Interactive Financial eXchange (USA, Banking) � United dictionary of abbreviations and acronyms
������ IFX-Cbonds � ������ ������������� ��������� IFX Cbonds ���� ������ ������� 1 ������ 2002 ��� � ���������
Cbonds � �������������� ��������� Cbonds ��� ��� ��� ��������� 2000 � ���������