TAILIEUCHUNG - Web Publishing with PHP and FileMaker 9- P8

Web Publishing with PHP and FileMaker 9- P8:On the other hand, it would drive me nuts if you bought this book only to discover that it didn’t address your needs. In the spirit of customer satisfaction, please read the following introduction to get a sense of where I’m coming from, and whether you might get some good use out of this book. | Viewing FileMaker Data 95 Viewing FileMaker Data As I see it there is a big difference between allowing someone to view your data and allowing someone to edit or delete your data. Viewing data is typically referred to as a read operation whereas editing or deleting data is called a write operation. Beyond the obvious differences for example you don t want random people deleting your product catalog there are a lot of differences behind the scenes. So I cover read and write operations separately. The remainder of this chapter is devoted to read examples. Write operations are covered in the next chapter. Retrieving All Records What we are going to do now is create a PHP page that will access the Product Catalog database and show a list of all the products. Note that there are a couple of PHPisms that you won t recognize from the PHP chapter. I left them out until now because they are closely related to the use of itself. I ll describe them shortly so just sort of soak everything in for a sec. LISTING Example 06 01 php define FM_HOST define FM_FILE Product Catalog define FM_USER esmith define FM_PASS m4rg0t include fm new FileMaker FM_FILE FM_HOST FM_USER FM_PASS request fm- newFindAllCommand Product result request- execute records result- getRecords loop through records compiling row html rows foreach records as record rows . tr rows . td . record- getField ID . td rows . td . record- getField Name . td rows . td . record- getField Model Number . td rows . td . record- getField Price . td rows . td . record- getField Created At . td rows . td . record- getField Created By . td rows . tr html head title 06_01 title 6 96 LISTING Continued head body table border 1 tr th ID th th Name th th Model Number th th Price th th Created At th th Created By th tr php echo rows table body html Right off the bat you probably noticed the four define lines as something new define FM_HOST define FM_FILE Product Catalog define .

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.