TAILIEUCHUNG - PHP 5/MySQL Programming- P84

PHP 5/MySQL Programming- P84:computer programming has often been seen as a difficult and arcane skill. Programming languages are difficult and complicated, out of the typical person’s reach. However, the advent of the World Wide Web has changed that to some extent. It’s reasonably easy to build and post a Web page for the entire world to see. The language of the Web is reasonably simple, and numerous applications are available to assist in the preparation of static pages | 393 If I want to improve a module I do it once in the library rather than in several places. It is extremely simple to modify the code library so it works with another database. The details of each particular module are hidden in a separate library so I can focus on the bigger picture when writing each PHP page. The routines can be reused to work with any table in the database. The routines can automatically adjust to changes in the data structure. The library can be readily reused for another project. Figure shows a more detailed state diagram. figure This state diagram illustrates the relationship between PHP programs and functions in the spyLib code library. Chapter 12 Building a Three-Tiered Data Application When you begin looking at actual code you ll see most of the PHP programs are extremely simple. They usually just collect data for a library function send program control off to that function and then print any output produced by the function. Writing the Non-Library Code I begin here by describing all the parts of this project except the library. The library module is driven by the needs of the other PHP programs so it makes sense to look at the other programs first. 394 Preparing the Database PHP 5 MySQL Programming for the Absolute Beginner The database for this segment is almost the same as the one used in chapter 11 Data Normalization. I added one table to store queries. All other tables are the same as those in chapter 11. The SQL script that creates this new version of the spy database is available on the CD as . Note I have modified the database slightly from chapter 11 because the new version includes several queries as part of the data In order to make the program reasonably secure I don t want typical users to be able to make queries. I also don t want users to be limited to the few queries I thought of when building this system. One solution is to store a set of queries in the database and let appropriate users modify the

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.