PHP and MySgi. John Wiley & Sons, Inc. 24-HOUR TRAINER. Andrea Tarr WILEY

Similar documents
Static Webpage Development

Murach s Beginning Java with Eclipse

PHP and MySQL Programming

Mobile Site Development

"Charting the Course... Intermediate PHP & MySQL Course Summary

Web development using PHP & MySQL with HTML5, CSS, JavaScript

A Web-Based Introduction

Developing Web Applications

Web Development & SEO (Summer Training Program) 4 Weeks/30 Days

Programming for the Web with PHP

PHP Online Training. PHP Online TrainingCourse Duration - 45 Days. Call us: HTML

Get in Touch Module 1 - Core PHP XHTML

PHP & PHP++ Curriculum

Core PHP. PHP output mechanism. Introducing. Language basics. Installing & Configuring PHP. Introducing of PHP keywords. Operators & expressions

Introduction to PHP. Handling Html Form With Php. Decisions and loop. Function. String. Array

Getting Started with PHP

SEEM4570 System Design and Implementation. Lecture 6 Game Part II

CORE PHP CURRICULUM. Introductory Session Web Architecture Overview of PHP Platform Origins of PHP in the open source community

Chapter 2: Functions and Control Structures

Mastering phpmyadmiri 3.4 for

Mastering Linux. Paul S. Wang. CRC Press. Taylor & Francis Group. Taylor & Francis Croup an informa business. A CHAPMAN St HALL BOOK

Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a

An Introduction to JavaScript & Bootstrap Basic concept used in responsive website development Form Validation Creating templates

Java.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC.

R. C. TECHNICAL INSTITUTE, AHMEDABAD COMPUTER ENGG. DEPARTMENT ASSIGNMENT 1

Acknowledgments Introduction. Chapter 1: Introduction to Access 2007 VBA 1. The Visual Basic Editor 18. Testing Phase 24

Flask Web Development Course Catalog

PHP CURRICULUM 6 WEEKS

Full Stack Web Developer

PHP + ANGULAR4 CURRICULUM 6 WEEKS

SETH JAI PARKASH POLYTECHNIC, DAMLA COMPUTER ENGINEERING-5 TH SEMESTER

CERTIFICATE IN WEB PROGRAMMING

PHP WITH ANGULAR CURRICULUM. What you will Be Able to Achieve During This Course

The PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web

1/22/2017. Chapter 2. Functions and Control Structures. Calling Functions. Objectives. Defining Functions (continued) Defining Functions

1) PHP & mysql, Mini project: This will taught by trainer. 2) PHP & mysql, Live project, This will taught by trainer.

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Beginning PHP. and MySQL. Fourth Edition. From Novice to Professional. W. Jason Gilmore. mmm

DevShala Technologies A-51, Sector 64 Noida, Uttar Pradesh PIN Contact us

Hello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL.

MySQL: Access Via PHP

Web Development. With PHP. Web Development With PHP

,

PHP for PL/SQL Developers. Lewis Cunningham JP Morgan Chase

PHP & My SQL Duration-4-6 Months

Helpline No WhatsApp No.:

Contents I Introduction 1 Introduction to PL/SQL iii

Web Development. with Bootstrap, PHP & WordPress

Software. Full Stack Web Development Intensive, Fall Lecture Topics. Class Sessions. Grading

Contents. Acknowledgments

Full Stack Web Developer Course

Professional Course in Web Designing & Development 5-6 Months

Microsoft Windows PowerShell v2 For Administrators

Alan Forbes - The Joy of PHP 1

Language. f SQL. Larry Rockoff COURSE TECHNOLOGY. Kingdom United States. Course Technology PTR. A part ofcenqaqe Learninq

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

PHP,HTML5, CSS3, JQUERY SYLLABUS

CHAPTER 1: INTRODUCING C# 3

Diploma in Web Design (DWD)

PHP: Software Training Employability Programme

WEB APPLICATION ENGINEERING II

Databases. Web applications in PHP to query a database. Practice n. 4

JSN Dona Portfolio User's Guide

PHP / MYSQL DURATION: 2 MONTHS

SAP' ABAP. Handbook. Kogent Learning Solutions, Inc. Sudbury, Massachusetts JONES AND BARTLETT PUBLISHERS BOSTON TORONTO LONDON SINUAPORI:

Client Server System for e-services Providing in Mobile Communications Networks

PHP6 AND MYSQL BIBLE BY STEVE SUEHRING, TIM CONVERSE, JOYCE PARK

Chapters 10 & 11 PHP AND MYSQL

A Web-Based Introduction to Programming

Planning and Designing Your Site p. 109 Design Concepts p. 116 Summary p. 118 Defining Your Site p. 119 The Files Panel p. 119 Accessing Your Remote

UNIVERSITY OF BOLTON CREATIVE TECHNOLOGIES HND/BSC (HONS) COMPUTING & WEBSITE DEVELOPMENT SEMESTER TWO EXAMINATION 2016/2017

Course Syllabus. Course Title. Who should attend? Course Description. PHP ( Level 1 (

Advanced Web Tutorial 10

What is PHP? [1] Figure 1 [1]

Smart Bulk SMS & Voice SMS Marketing Script with 2-Way Messaging. Quick-Start Manual

Open Source Web Application Development - CS310

Hands-On Perl Scripting and CGI Programming

10961B: Automating Administration with Windows PowerShell

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6

MediaWiki Tutorial. Step 1:Install MediaWiki. Download files

Ampliación de Bases de Datos

Sample Copy. Not For Distribution

Django with Python Course Catalog

Full Stack Web Developer

Overview

Chapter 3. Introduction to relational databases and MySQL. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C3

SQL. Often times, in order for us to build the most functional website we can, we depend on a database to store information.

Client Server System for e-services Access Using Mobile Communications Networks

Oracle Syllabus Course code-r10605 SQL

JSN PowerAdmin Configuration Manual Introduction

Oracle BPM 10g R3 Programming 1 Essentials

Advanced Joomla! Dan Rahmel. Apress*

Bitnami ez Publish for Huawei Enterprise Cloud

Bitnami Coppermine for Huawei Enterprise Cloud

PHP 5 if...else...elseif Statements

Acknowledgments Introduction. Part I: Programming Access Applications 1. Chapter 1: Overview of Programming for Access 3

Learning PHP, MySQL & JavaScript WithjQuery, CSS & HTML5

BSc (Hons) Web Technologies. Examinations for 2017 / Semester 1

Adobe ColdFusion level 1 course content (3-day)

Teradata SQL Features Overview Version

Transcription:

PHP and MySgi 24-HOUR TRAINER Andrea Tarr WILEY John Wiley & Sons, Inc.

INTRODUCTION xvii LESSON 1: SETTING UP YOUR WORKSPACE 3 Installing XAMPP 3 Installing XAMPP on a Windows PC 4 Installing XAMPP on Mac OS X 6 Troubleshooting Your XAMPP Installation 8 Configuring XAMPP 9 Installing Your Editor 11 Configuring Your Workspace 12 Preparing a Place to Put Your Files 12 Using Eclipse for the First Time 14 18 19 19 19 LESSON 2: ADDING PHP TO A WEB PAGE 23 Writing Your First PHP Page 23 Introducing the Case Study 25 Using echo and include 27 29 29 30 30 LESSON 3: LEARNING PHP SYNTAX 33 Picking a Formatting Style 33 Learning PHP Syntax 35 Entering Comments 39 Using Best Practices 40 40 41 41 41

LESSON 4: WORKING WITH VARIABLES 45 Introduction to Variables 45 Working with Text 46 Working with the Concatenation Operator 48 Working with String Functions 48 Understanding Different Types of Numbers 50 Working with Numbers 50 Changing between Text and Numbers 52 52 53 53 53 LESSON 5: DEBUGGING CODE 57 Troubleshooting Techniques 57 Display Errors while Developing 57 Common Issues 59 Seeing What's What 60 Using Xdebug 61 Configuring Xdebug 62 Using Xdebug 66 67 68 68 68 LESSON 6: WORKING WITH COMPLEX DATA 71 Working with Arrays Working with Logical Variables Working with Constants Working with Dates Time Zone Functions Date/Time Functions Working with Built-in Functions $_GET $_POST Cookies filter_var() Working with Objects 71 73 74 74 74 75 80 80 81 82 84 c

LESSON 7: MAKING DECISIONS 91 If/Else 91 Basic If Statements 91 Comparison Operators for If/Else Statements 94 If/Else with Ternary Operator 96 Logical Operators 97 Switch Statements 100 Alternative Syntax 102 103 103 103 103 LESSON 8: REPEATING PROGRAM STEPS 107 While Loops 107 Do/While Loops 109 For Loops 110 Foreach Loops 112 Continue/Break 114 115 115 115 116 LESSON 9: LEARNING ABOUT SCOPE 119 Learning about Local Variables 119 Learning about Global Variables 120 122 122 122 122 LESSON 10: REUSING CODE WITH FUNCTIONS 125 Defining Functions 126 Passing Parameters 127 Getting Values from Functions 131 Using Functions 132 Including Other Files 137 137 137 138

LESSON 11: CREATING FORMS 141 Setting Up Forms 141 Processing Forms 146 Redirecting with Headers 153 154 154 154 154 LESSON 12: INTRODUCING OBJECT-ORIENTED PROGRAMMING 161 Understanding the Reasons for Using OOP 161 Introducing OOP Concepts 162 Objects and Classes 162 Extending Classes 163 Learning Variations in Different PHP Releases 163 164 164 164 164 LESSON 13: DEFINING CLASSES 167 Defining Class Variables (Properties) 168 Defining Class Functions (Methods) 169 173 173 174 174 LESSON 14: USING CLASSES 177 Instantiating the Class 177 Using Objects 178 181 182 182 182 LESSON 15: USING ADVANCED TECHNIQUES 187 Initializing the Class 187 Understanding Scope 188 Properties 188 Methods 191 Classes 192 cii

Understanding Inheritance 192 Understanding Static Methods and Properties 197 199 199 199 199 LESSON 16: HANDLING ERRORS 205 Testing for Errors 205 Using Try/Catch 210 211 211 212 212 LESSON 17: WRITING SECURE CODE 217 Understanding Common Threats 217 Using Proper Coding Techniques 218 221 221 221 221 LESSON 18: INTRODUCING DATABASES 227 What Is a Database? 227 Gathering Information to Define Your Database 228 Designing Your Tables 229 Setting up Relationships between Tables 229 Instituting the Business Rules 230 Normalizing the Tables 231 232 232 233 233 LESSON 19: INTRODUCING MYSQL 239 Using phpmyadmin 239 Creating Databases 241 Defining Tables and Columns 244 Entering Data 248 Backing Up and Restoring 250 xlii

Learning the Syntax 253 Literal Values 253 Identifiers 254 Comments 255 255 255 255 256 LESSON 20: CREATING AND CONNECTING TO THE DATABASE 263 Connecting with mysql/mysqli 263 Connecting with PDO 269 Creating the Database 270 271 271 272 272 LESSON 21: CREATING TABLES 275 Understanding Data Types 275 Strings 275 Numeric 277 Date and Time 278 Other Data Types 279 Using AUTOJNCREMENT 279 Understanding Defaults 280 Creating Tables in phpmyadmin 281 Using.sql Script Files 283 Adding MySQL Tables to PHP 287 288 288 289 289 LESSON 22: ENTERING DATA 295 Understanding the INSERT Command 295 Executing MySQL Commands in PHP 297 Processing Data Entry Forms in PHP 302 305 305 305 306 xlv

LESSON 23: SELECTING DATA 313 Using the SELECT Command 314 Using WHERE 317 Selecting Data in PHP 319 321 322 322 322 LESSON 24: USING MULTIPLE TABLES 331 Using the JOIN Clause 332 Using Subqueries 335 336 336 337 337 LESSON 25: CHANGING DATA 343 Using the UPDATE Command 344 Updating Data in PHP 345 Using Prepared Statements 347 MYSQLI 348 PHP Data Objects (PDO) 350 352 352 352 353 LESSON 26: DELETING DATA 361 Using the DELETE Command 361 Deleting Data in PHP 364 365 365 366 366 LESSON 27: PREVENTING DATABASE SECURITY ISSUES 387 Understanding Security Issues 387 Using Best Practices 389 Filtering Data 391 xv

393 393 393 393 LESSON 28: CREATING USER LOGINS 399 Understanding Access Control Protecting Passwords Using Cookies and Sessions Putting Logins to Work 399 400 402 403 404 405 405 405 LESSON 29: TURN THE CASE STUDY INTO A CONTENT MANAGEMENT SYSTEM 419 Designing and Creating the Table Creating the Class Properties Methods Creating the Maintenance Pages Creating the Display Page 419 420 420 420 422 422 425 425 425 425 LESSON 30: CREATING A DYNAMIC MENU 443 Setting up the Menu Table Adding the Menu to the Website 443 444 445 446 446 446 LESSON 31: NEXT STEPS 461 APPENDIX : WHAT'S ON THE DVD? 463 INDEX 467 :vi