TAILIEUCHUNG - Learning PHP5

When you begin a new project, one of the first things you have to consider is the structure of your code. Whether you’re coding something as simple as an online contact form, or as complex as a full-featured content management system, how you organize your code is going to influence the performance and maintainability of the end product. When you use a language like PHP, there are two main routes you can go: procedural programming and object-oriented programming—OOP for short. Each strategy has its own benefits and limitations | 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

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.