TAILIEUCHUNG - Beginning XML with DOM and Ajax From Novice to Professional phần 10

Bạn có thể sử dụng các hình thức trên trang để thu thập các thay đổi, mà sau đó sẽ được xử lý với các .php hiểu để xây dựng các ứng dụng web chuyên nghiệp với Bắt đầu từ Tất cả các quyền. Không có một phần của công việc này | 386 CHAPTER 13 CASE STUDY USING PHP FOR AN XML APPLICATION This table stores the date of the forecast the maximum and minimum temperatures and the current weather conditions. The current conditions come from values in the weatherWeatherTypelD field. This foreign key is associated with the weatherType table CREATE TABLE weatherType weatherTypelD int 11 NOT NULL auto_increment weatherType varchar 40 default NULL PRIMARY KEY weatherTypeID TYPE MyISAM The last section of the SQL script inserts the default weather conditions into the weatherType table INSERT INTO weatherType VALUES 1 hot INSERT INTO weatherType VALUES 2 sunny INSERT INTO weatherType VALUES 3 windy INSERT INTO weatherType VALUES 4 cloudy INSERT INTO weatherType VALUES 5 rain INSERT INTO weatherType VALUES 6 rainstorms INSERT INTO weatherType VALUES 7 snow INSERT INTO weatherType VALUES 8 snowstorms Each of these weather types has an associated image in the images folder. In phpMyAdmin switch to the SQL section and copy and paste the contents of the file into the Run SQL queries section of the page as shown in Figure 13-3. Figure 13-3. Running the SQL script in phpMyAdmin CHAPTER 13 CASE STUDY USING PHP FOR AN XML APPLICATION 387 Click the Go button to run the script. You should see a message stating that the SQL query has been executed successfully. The left-hand side of the page should show the names of six tables as in Figure 13-4. Figure 13-4. The completed database You also need to set the permissions and user details for the database. The connection details are stored within the file wdb_host localhost wdb_user user_weather wdb_pass weatherpassword wdb_name weather You may need to alter the host setting for your own system. In phpMyAdmin switch back to the databases section by choosing Databases from the drop-down list on the left of the screen. Click the Privileges link in the central pane and choose Add a new User. 388 CHAPTER 13 CASE STUDY USING PHP FOR AN XML APPLICATION

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.