tailieunhanh - Professional LAMP Linux Apache, MySQL and PHP5 Web Development phần 2
Giây chứng nhận có thể được bất cứ loại nào, và không có yêu cầu được đặt vào những gì giao diện một lớp học có khả năng phải thực hiện. Tuy nhiên, JAAS cung cấp hai giao diện ban cho hành vi trên một lớp học chứng chỉ mà có thể chứng minh hữu ích. Các giao diện này là refreshable và bị phá hủy. | What s New in PHP5 host_info Returns a string representing the type of connection used. info Retrieves information about the most recently executed query. insert_id Returns the auto generated id used in the last query. protocol_version Returns the version of the MySQL protocol used. sqlstate Returns a string containing the SQLSTATE error code for the last error. thread_id Returns the thread ID for the current connection. warning_count Returns the number of warnings generated during execution of the previous SQL statement. mysqli_stmt This class addresses a prepared statement or an SQL statement that is temporarily stored by the MySQL server until it is needed. An example of a prepared statement is SELECT FROM customer WHERE lastname . Then when you are ready to execute the statement all you need to do is plug in the value for lastname. Note that when you are using these methods as functions in procedural programming you would use a mysqli_stmt_ preface to the method name mysqli_stmt_close . The methods available to this class are as follows bind_param Binds variables to a prepared statement. bind_result Binds variables to a prepared statement for result storage. close Closes a prepared statement. data_seek Seeks to an arbitrary row in a statement resultset. execute Executes a prepared statement. fetch Fetches the result from a prepared statement into bound variables. free_result Frees stored result memory for the given statement handle. prepare Prepares a SQL query. reset Resets a prepared statement. result_metadata Retrieves a resultset from a prepared statement for metadata information. send_long_data Sends data in chunks. store_result Buffers a complete resultset from a prepared statement. The properties available to this class are as follows affected_rows Returns affected rows from last statement execution. errno Returns an error code for the last statement function. errno Returns an error message for the last statement function. param_count Returns the number
đang nạp các trang xem trước