1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P86 potx

5 231 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 362,84 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

int mssql_field_seek int result, int field_offset Description The mssql_field_seek function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, sets the field

Trang 1

int mssql_field_seek (int result, int field_offset)

Description

The mssql_field_seek() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, sets the field position in the result set to the

specified offset If the next call to mssql_fetch_field() doesn't include an offset, this field will be returned

mssql_field_type()

Syntax

string mssql_field_type (int result [, int offset)

Description

The mssql_field_type() function, which is available from PHP 3.0.3 to PHP 3.0.16 along with PHP 4.0 and higher, returns the type of a field in the result set at the offset location

mssql_free_result()

Syntax

int mssql_free_result (int result)

Description

The mssql_free_result() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, frees all memory associated with the result set This

will happen automatically at the end of a script's processing, so it is not usually necessary to call this function

mssql_get_last_message

Syntax

Trang 2

Description

The mssql_get_last_message() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, returns the last message generated from the server

mssql_min_error_severity()

Syntax

void mssql_min_error_severity (int severity)

Description

The mssql_min_error_severity() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, sets the minimum threshold for the errors generated by the server

mssql_min_message_severity()

Syntax

void mssql_min_message_severity (int severity)

Description

The mssql_min_message_severity() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, sets the maximum threshold for the messages generated by the server

mssql_num_fields()

Syntax

int mssql_num_fields (int result)

Description

Trang 3

The mssql_num_fields() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, returns the number of fields in the result set

mssql_num_rows()

Syntax

int mssql_num_rows (int result)

Description

The mssql_num_rows() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, returns the number of rows in the result set

mssql_pconnect()

Syntax

int mssql_pconnect (string servername [, string username [, string

password]]])

Description

The mssql_pconnect() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, acts similar to mssql_connect() except that it first looks for a persistent connection that is already established If a persistent connection is available, the function uses it instead of opening a new one Secondly, the connection does not close with the end of a script's processing

mssql_query()

Syntax

int mssql_query (string query [, int link_identifier])

Description

The mssql_query() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, sends a query to the database indicated by the

Trang 4

attempt is made as if mssql_connect() were called A result_identifier is

returned on success; otherwise, FALSE is returned

mssql_result()

Syntax

int mssql_result (int result, int i, mixed field)

Description

The mssql_result() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, returns the contents of one column of a result set The field parameter can be one of three values: the offset, the fieldname, or the field's

table name dot field name The column name will be the alias value if specified If processing several columns or the entire row of the result set, you should use

mssql_fetch_row(), mssql_fetch_array(), or mssql_fetch_object() because they are more efficient Also note that specifying an offset is more efficient than using column names

mssql_select_db()

Syntax

int mssql_select_db (string database_name [, int link_identifier])

Description

The mssql_select_db() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, sets the active database for the server that is referenced by the link_identifier parameter If no link_identifier is specified,

an attempt will be made to open a connection as though mssql_connect() were called

mSQL

The mSQL functions enable you access to data in an mSQL database More information can be found at http://www.Hughes.com.ua To include support for this database, compile with the –-with-msql=[dir] option where dir is typically

/usr/local/Hughes The following example connects to the user database and retrieves user123's password from the users table:

<?

$msql_link_id = msql_connect("users");

Trang 5

$msql_result_id =

msql_query ("select password from users where

username=user123",$msql_link_id);

$results = msql_fetch(msql_result_id);

echo $results[0];

mssql_close($msql_link_id);

?>

msql()

Syntax

int msql (string database, string query, int link_identifier)

Description

The msql() function, which is available from PHP 3.0 to PHP 3.0.16 along with PHP 4.0 and higher, executes the query against the database specified using the optional link_identifier parameter If no link_identifier is specified, it attempts to

create a connection as though msql_connect() were called with no arguments The return value is an mSQL query identifier to the query result, or FALSE on error

msql_affected_rows()

Syntax

int msql_affected_rows (int query_identifier)

Description

The msql_affected_rows() function, which is available from PHP 3.0.6 to PHP 3.0.16 along with PHP 4.0 and higher, returns the number of rows impacted by the execution of the query referenced by the query_identifier parameter

msql_close()

Syntax

int msql_close (int link identifier)

Ngày đăng: 07/07/2014, 05:20

TỪ KHÓA LIÊN QUAN