0%

Book Description

Learn to build e-commerce sites using PHP by installing a server using WAMP, configuring MySQL for your product database, creating your product database and tables, and writing the required PHP scripts for accessing and inserting data into the database. Make an E-commerce Site in a Weekend: Using PHP details how to create shopping carts for your customers and how to set up secure payment and processing options. Even if you are an absolute beginner and don't have much programming experience, you can build a responsive, powerful, and fully featured e-commerce site quickly using the information in this book.

Table of Contents

  1. Cover
  2. Title
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. About the Author
  8. About the Technical Reviewer
  9. Acknowledgments
  10. Introduction
  11. Chapter 1 : Introduction
    1. Why PHP?
    2. How the E-Commerce Site Will Appear
    3. Software Required for Developing the Site
    4. Installing the WampServer
    5. Installing the LAMP Server
    6. Starting the Server
    7. Configuring MySQL
      1. Required Database Tables
      2. Steps to Run the MySQL Script
    8. Summary
  12. Chapter 2 : PHP and MySQL
    1. Writing Your First PHP Script
      1. Using Variables in PHP
      2. The echo Statement
      3. Concatenating Strings
    2. HTTP Methods for Transferring Data
      1. The GET Method
      2. The POST Method
    3. Passing Information from One Script to Another
      1. Using $_GET Array
      2. Using $_POST Array
      3. Using the $_REQUEST Array
    4. Creating the Sign-Up Form
    5. Applying Validation Checks
    6. Code for Connecting PHP with MySQL
      1. Executing SQL Commands Through PHP
    7. Implementing Authentication
    8. Summary
  13. Chapter 3 : Accessing the Database Using PHP
    1. Accessing Products and Displaying Them on Screen
    2. Creating a Drop-Down Menu
    3. Adding a Web Site Header
    4. Implementing a Search Feature
    5. Showing Product Details
    6. Session Handling
      1. Functions Used in Session Handling
    7. Signing In and Out
    8. Defining the Home Page of the Site
    9. Summary
  14. Chapter 4 : Managing the Shopping Cart
    1. Saving Selections in the Cart
      1. Maintaining the Cart
    2. Displaying the Cart Count in the Site Header Using AJAX
    3. Proceeding to Check Out
      1. Supplying Shipping Information
    4. Understanding Different Payment Modes
      1. Making Payments
    5. Summary
  15. Index