PHP MYSQL In Hours By Ray Yao For Beginners Learn Coding Fast Copyright © 2015 by Ray Yao All Rights Reserved Neither part of this book nor whole of this book may be reproduced or transmitted in any form or by any means electronic, photographic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without prior written permission from the author Ray Yao About the Author Ray Yao: Certified PHP engineer by Zend, USA Certified JAVA programmer by Sun, USA Certified SCWCD developer by Oracle, USA Certified A+ professional by CompTIA, USA Certified ASP NET expert by Microsoft, USA Certified MCP professional by Microsoft, USA Certified TECHNOLOGY specialist by Microsoft, USA Certified NETWORK+ professional by CompTIA, USA Recommended Books on Amazon: Linux Command Line Advanced C++ In Hours Advanced Java In Hours AngularJS In Hours C# In Hours C++ In Hours Chinese Daily Phrases HTML CSS In Hours JAVA In Hours JAVA 100 Tests & Answers JavaScript In Hours JavaScript 50 Useful Programs JavaScript 100 Tests & Answers JQuery In Hours PHP In Hours PHP 100 Tests & Answers Python In Hours Ruby In Hours Visual Basic In Hours Preface “PHP MySQL In Hours” is a useful book for beginners You can learn complete primary knowledge of PHP & MYSQL fast and easily This book includes many practical Hands-On Projects You can learn PHP MySQL coding fast with Hands-On Projects Source Code for Download This book provides source code for download; you can download the source code for better study, or copy the source code to your favorite editor to test the programs Download Link: PHP MySQL Source Code for Download Table of Contents Hour Start PHP Install PHP & MySQL What is PHP? Run First Program Comments PHP Reserved Words Variables Data Types Escaping Characters Functions Function with Arguments Variable Scope Multiple Arguments Hands-On Project: Calculation Hour PHP Basic Conditional Operator Arithmetical Operators Logical Operators Assignment Operators Comparison Operators If Statement If-else Statement Switch Statement For Loop While Loop Do-While Loop Break Statement Continue Statement Return Statement Hands-On Project: One to Ten Hour Use Array Create an Array Show array element values Get the Size of Array Array keys & Values Iterate Array Add Array Elements Remove Array Elements Merge Array Extract Array Sort Array Hands-On Project: Start with Zero Hour Form Basic Create a Form Text Inputs Password inputs Submit Inputs Reset Inputs Textarea Inputs Radio Inputs Checkbox Inputs Form Works with PHP Form Works with PHP Hands-On Project: Radio’s Colors Hour Dynamic Data Date & Time String Process Redirection of Browser Information of Visitor Cookie Session Session Usage Open a File Read a File Write a File Close a File Hands-On Project: Extract Sth Hour Class & Object Class Definition Object Declaration Class & Object $this-> variable Constructor (1) Constructor (2) Destructor Extend Class Inheritance Class:: method ( ) Hands-On Project: Set Appoiment Hour MySQL Basic What is MySQL? MySQL Data Type Column Modifiers phpMyAdmin Show Databases Create a Database Select a Database Create a table Show Table Insert Data to Table Browse Table Alter a table Update Data Select Queries Database Commands Table Commands Field Modifiers Operation Commands Hands-On Project: Set DataBase Hour MySQL & PHP Connect MySql Server Select Database Insert Table Data Alter Table Structure Update Table Data Retrieve Table Data mysqli_fetch_row( ) mysqli_fetch_assoc( ) mysqli_fetch_array( ) mysqli_num_rows( ) mysqli_close( ) mysqli_xxx_xxx ( ) Summary Hands-On Project: Work Together Appendix PHP Security Hands-On Projects Why Security Code? 1: Filter Malicious Password 2: Filter Malicious Characters 3: Filter Malicious Input 4: Limit Specified Input 5: Escape Output 6: Protect Database Appendix PHP Tests & Answers (20) A close B end C exit D mysqli_close (21) A $argument B $arg C &argument D &arg (22) A pass (23) B send C return D continue A merge (24) B array.merge C array_merge D combine A $_POST B $_GET C $_FILES D $_ENV (25) // firstPage.php // start php session Here is "First Page". Send Out a Session ID