PHP & MySQL Everyday Apps for Dummies phần 1 pot

46 275 0
PHP & MySQL Everyday Apps for Dummies phần 1 pot

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... 412 Source code files 412 Links to useful PHP and MySQL information 413 A bonus chapter 414 Troubleshooting 414 Index 417 xvii xviii PHP & MySQL Everyday Apps For Dummies Introduction B ecause you’re looking at a book called PHP & MySQL Everyday Apps For Dummies, I assume you want to build a Web application with the PHP scripting language and a MySQL. .. Object-Oriented Approach 10 1 Developing the objects .10 1 Writing the WebForm class 10 2 Writing the Database class .11 0 Writing the Account class 11 1 Writing the Session class 11 4 Writing the Email class .11 7 Writing the login application script 11 9 Protecting your Web pages 12 6 Adding Features to the Application 12 6 Part III: Building... with a Web Forum 309 Designing the Forum Application 309 Creating the Forum Database 310 Designing the Forum database 311 Building the forum tables 314 Accessing the forum tables 315 Adding data to the database 316 Building the Forum Web Pages 317 Designing the Forum Web pages . 317 Writing the code for the Forums page 3 21 Writing... 7 Chapter 1: Building Your Application 9 Understanding PHP and MySQL Versions 10 MySQL 11 PHP 11 PHP and MySQL together 12 Using the Application Source Code 13 Choosing a location .13 Understanding the PHP code .14 Procedural versus object-oriented programs 15 Modifying the Source Code 16 Programming... either PHP 4 or PHP 5, with the exception of the MySQL function calls See the following section, PHP and MySQL together,” for further information on the MySQL function calls The object-oriented programs in this book run only with PHP 5 PHP and MySQL together PHP interacts with MySQL by using built-in functions Currently, PHP provides two sets of functions for use when accessing MySQL databases: the MySQL. .. database 16 4 Accessing the shopping cart database 16 5 Adding data to the shopping cart database 16 5 Building the Shopping Cart Web Pages 16 6 Designing the shopping cart Web pages 16 6 Writing the code for the product information page 17 1 Writing the code for the shopping cart Web page 17 5 Writing the code for the shipping information form .18 2 Writing the code for the summary... version 4.0 or 4 .1 However, the functions used in PHP might or might not run correctly See the following section for information on PHP versions PHP Currently, PHP is maintaining two versions: PHP 4 and PHP 5 The current versions are PHP 4.3 .11 and PHP 5.0.4 PHP 5 is a major change from PHP 4 Enhancing object-oriented programming features was an important goal in the development of PHP 5 The creation... script 15 5 Growing the Catalog class 15 7 Chapter 6: Shopping Cart Application 15 9 Designing the Shopping Cart Application 15 9 Basic application design decisions 15 9 Application functionality design .16 1 xiii xiv PHP & MySQL Everyday Apps For Dummies Creating the Shopping Cart Database 16 2 Designing the shopping cart database 16 2 Building... the MySQL Improved extension The MySQL Improved extension was made available with PHP 5 for use with MySQL 4 .1 When you install PHP, you activate either the MySQL or the MySQL Improved extension PHP 4 activates MySQL automatically during installation You don’t need to activate it yourself PHP 4 activates the MySQL extension The MySQL Improved extension isn’t available with PHP 4 You can use the MySQL. .. extension with MySQL 4 .1; you just can’t use some of the new version 4 .1 features PHP 5 doesn’t activate MySQL automatically You need to enable MySQL support yourself either by using the installation option — with -mysql or with-mysqli — on Linux/Mac or by uncommenting one of the following lines in php. ini: ;extension =php_ mysql. dll ;extension =php_ mysqli.dll In general, it’s best to use mysql with MySQL version . Valade PHP & MySQL ® Everyday Apps FOR DUMmIES ‰ 01_ 575872 ffirs.qxd 5/27/05 6 :16 PM Page iii 01_ 575872 ffirs.qxd 5/27/05 6 :16 PM Page ii PHP & MySQL ® Everyday Apps FOR DUMmIES ‰ 01_ 575872. 5/27/05 6 :16 PM Page i 01_ 575872 ffirs.qxd 5/27/05 6 :16 PM Page ii by Janet Valade PHP & MySQL ® Everyday Apps FOR DUMmIES ‰ 01_ 575872 ffirs.qxd 5/27/05 6 :16 PM Page iii PHP & MySQL ® Everyday. Approach 10 1 Developing the objects 10 1 Writing the WebForm class 10 2 Writing the Database class 11 0 Writing the Account class 11 1 Writing the Session class 11 4 Writing the Email class 11 7 Writing

Ngày đăng: 12/08/2014, 21:21

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan