Book description
In just a short time, you can learn how to use PHP, MySQL, and JavaScript together to create dynamic, interactive websites and applications using three leading web development technologies.
No previous programming experience is required. Using a straightforward, step-by-step approach, each lesson in this book builds on the previous ones, enabling you to learn the essentials of full-stack web application development – from HTML, CSS, and JavaScript on the front end, to PHP scripting and MySQL databases on the server.
Regardless of whether you run Linux, Windows, or MacOS, the book includes complete instructions to install all the software you need to set up a stable environment for learning, testing, and production.
Step-by-step instructions carefully walk you through the most common web application development tasks.
Practical, hands-on examples show you how to apply what you learn.
Quizzes and exercises help you test your knowledge and stretch your skills.
Learn how to:
- Build web pages with HTML5 and CSS
- Use JavaScript to build dynamic, interactive web pages
- Get PHP, MySQL, and JavaScript to work together to create modern, standards-compliant web applications
- Enhance interactivity with AJAX
- Leverage JavaScript libraries such as jQuery
- Work with cookies and user sessions
- Get user input with web-based forms
- Use basic SQL commands
- Interact with the MySQL database using PHP
- Write maintainable code and get started with version control
- Decide when frameworks such as Bootstrap, Foundation, React, Angular, and Laravel can be useful
- Create a web-based discussion forum or calendar
- Add a storefront and shopping cart to your site
Contents at a Glance
PART I Web Application Basics
1 Understanding How the Web Works
2 Structuring HTML and Using Cascading Style Sheets
3 Understanding the CSS Box Model and Positioning
4 Introducing JavaScript
5 Introducing PHP
PART II Getting Started with Dynamic Web Sites
6 Understanding Dynamic Web Sites and HTML5 Applications
7 JavaScript Fundamentals: Variables, Strings, and Arrays
8 JavaScript Fundamentals: Functions, Objects, and Flow Control
9 Understanding JavaScript Event Handling
10 The Basics of Using jQuery
PART III Taking Your Web Applications to the Next Level
11 AJAX: Getting Started with Remote Scripting
12 PHP Fundamentals: Variables, Strings, and Arrays
13 PHP Fundamentals: Functions, Objects, and Flow Control
14 Working with Cookies and User Sessions
15 Working with Web-Based Forms
PART IV Integrating a Database into Your Applications
16 Understanding the Database Design Process
17 Learning Basic SQL Commands
18 Interacting with MySQL Using PHP
PART V Getting Started with Application Development
19 Creating a Simple Discussion Forum
20 Creating an Online Storefront
21 Creating a Simple Calendar
22 Managing Web Applications
PART VI Appendixes
A Installation QuickStart with XAMPP
B Installing and Configuring MySQL
C Installing and Configuring Apache
D Installing and Configuring PHP
Table of contents
- Cover Page
- Title Page
- Copyright Page
- About This E-Book
- Contents at a Glance
- Table of Contents
- Introduction
-
Part I: Web Application Basics
- CHAPTER 1: Understanding How the Web Works
-
CHAPTER 2: Structuring HTML and Using Cascading Style Sheets
- Getting Started with a Simple Web Page
- HTML Tags Every Web Page Must Have
- Using Hyperlinks in Web Pages
- Organizing a Page with Paragraphs and Line Breaks
- Organizing Your Content with Headings
- Understanding Semantic Elements
- How CSS Works
- A Basic Style Sheet
- A CSS Style Primer
- Using Style Classes
- Using Style IDs
- Internal Style Sheets and Inline Styles
- Summary
- Q&A
- Workshop
- CHAPTER 3: Understanding the CSS Box Model and Positioning
- CHAPTER 4: Introducing JavaScript
- CHAPTER 5: Introducing PHP
-
Part II: Getting Started with Dynamic Websites
-
CHAPTER 6: Understanding Dynamic Websites and HTML5 Applications
- Refresher on the Different Types of Scripting
- Displaying Random Content on the Client Side
- Understanding the Document Object Model
- Using window Objects
- Working with the document Object
- Accessing Browser History
- Working with the location Object
- More About the DOM Structure
- Working with DOM Nodes
- Creating Positionable Elements (Layers)
- Hiding and Showing Objects
- Modifying Text Within a Page
- Adding Text to a Page
- Changing Images Based on User Interaction
- Thinking Ahead to Developing HTML5 Applications
- Summary
- Q&A
- Workshop
- CHAPTER 7: JavaScript Fundamentals: Variables, Strings, and Arrays
-
CHAPTER 8: JavaScript Fundamentals: Functions, Objects, and Flow Control
- Using Functions
- Introducing Objects
- Using Objects to Simplify Scripting
- Extending Built-in Objects
- Using the Math Object
- Working with Math Methods
- Working with Dates
- The if Statement
- Using Shorthand Conditional Expressions
- Testing Multiple Conditions with if and else
- Using Multiple Conditions with switch
- Using for Loops
- Using while Loops
- Using do…while Loops
- Working with Loops
- Looping Through Object Properties
- Summary
- Q&A
- Workshop
- CHAPTER 9: Understanding JavaScript Event Handling
- CHAPTER 10: The Basics of Using jQuery
-
CHAPTER 6: Understanding Dynamic Websites and HTML5 Applications
-
Part III: Taking Your Web Applications to the Next Level
- CHAPTER 11: AJAX: Remote Scripting
- CHAPTER 12: PHP Fundamentals: Variables, Strings, and Arrays
-
CHAPTER 13: PHP Fundamentals: Functions, Objects, and Flow Control
- Calling Functions
- Defining a Function
- Returning Values from User-Defined Functions
- Understanding Variable Scope
- Saving State Between Function Calls with the static Statement
- More About Arguments
- Testing for the Existence of a Function
- Creating an Object
- Object Inheritance
- Switching Flow
- Implementing Loops
- Summary
- Q&A
- Workshop
- CHAPTER 14: Working with Cookies and User Sessions
-
CHAPTER 15: Working with Web-Based Forms
- How HTML Forms Work
- Creating a Form
- Accepting Text Input
- Naming Each Piece of Form Data
- Labeling Each Piece of Form Data
- Grouping Form Elements
- Exploring Form Input Controls
- Using HTML5 Form Validation
- Submitting Form Data
- Accessing Form Elements with JavaScript
- Accessing Form Elements with PHP
- Using Hidden Fields to Save State in Dynamic Forms
- Sending Mail on Form Submission
- Summary
- Q&A
- Workshop
-
Part IV: Integrating a Database into Your Applications
- CHAPTER 16: Understanding the Database Design Process
-
CHAPTER 17: Learning Basic SQL Commands
- Learning the MySQL Data Types
- Learning the Table-Creation Syntax
- Using the INSERT Statement
- Using the SELECT Statement
- Using WHERE in Your Queries
- Selecting from Multiple Tables
- Using the UPDATE Statement to Modify Records
- Using the REPLACE Statement
- Using the DELETE Statement
- Frequently Used String Functions in MySQL
- Using Date and Time Functions in MySQL
- Summary
- Q&A
- Workshop
- CHAPTER 18: Interacting with MySQL Using PHP
- Part V: Getting Started with Application Development
- Appendix A: Installation QuickStart Guide with XAMPP
- Appendix B: Installing and Configuring MySQL
- Appendix C: Installing and Configuring Apache
- Appendix D: Installing and Configuring PHP
- Index
Product information
- Title: SamsTeachYourself PHP, MySQL & JavaScript: All in One, 6th Edition
- Author(s):
- Release date: October 2017
- Publisher(s): Sams
- ISBN: 9780134439594
You might also like
book
Mastering The Faster Web with PHP, MySQL, and JavaScript
Make web applications run faster by using advanced PHP, SQL and JavaScript techniques Key Features Use …
book
PHP and MySQL Web Development, Third Edition
A new edition of this title is available, ISBN-10: 0672329166 ISBN-13: 9780672329166 We've taken the best …
book
PHP and MySQL Web Development: A Beginner’s Guide
Essential Skills—Made Easy! PHP and MySQL Web Development: A Beginner's Guide takes you from building static …
book
PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide
It hasn't taken Web developers long to discover that when it comes to creating dynamic, database-driven …