Learning PHP, MySQL, JavaScript, and CSS: A Step-by-Step Guide to Creating Dynamic Websites [NOOK Book]

Overview


Learn how to build interactive, data-driven websites—even if you don’t have any previous programming experience. If you know how to build static sites with HTML, this popular guide will help you tackle dynamic web programming. You’ll get a thorough grounding in today’s core open source technologies: PHP, MySQL, JavaScript, and CSS.

Explore each technology separately, learn how to combine them, and pick up valuable web programming concepts ...

See more details below
Learning PHP, MySQL, JavaScript, and CSS: A Step-by-Step Guide to Creating Dynamic Websites

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$17.99
BN.com price
(Save 43%)$31.99 List Price

Overview


Learn how to build interactive, data-driven websites—even if you don’t have any previous programming experience. If you know how to build static sites with HTML, this popular guide will help you tackle dynamic web programming. You’ll get a thorough grounding in today’s core open source technologies: PHP, MySQL, JavaScript, and CSS.

Explore each technology separately, learn how to combine them, and pick up valuable web programming concepts along the way, including objects, XHTML, cookies, and session management. This book provides review questions in each chapter to help you apply what you’ve learned.

  • Learn PHP essentials and the basics of object-oriented programming
  • Master MySQL, from database structure to complex queries
  • Create web pages with PHP and MySQL by integrating forms and other HTML features
  • Learn JavaScript fundamentals, from functions and event handling to accessing the Document Object Model
  • Pick up CSS basics for formatting and styling your web pages
  • Turn your website into a highly dynamic environment with Ajax calls
  • Upload and manipulate files and images, validate user input, and secure your applications
  • Explore a working example that brings all of the ingredients together
Read More Show Less

Product Details

  • ISBN-13: 9781449337483
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 8/13/2012
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 2
  • Pages: 586
  • Sales rank: 283,511
  • File size: 9 MB

Meet the Author

Robin Nixon has worked with and written about computers since the early 1980s (his first computer was a Tandy TRS 80 Model 1 with a massive 4KB of RAM!). One of the web sites he developed presented the world's first radio station licensed by the music copyright holders. In order to enable people to continue to surf while listening, Robin also developed the first known pop-up windows. He has also worked full time for one of Britain's main IT magazine publishers, where he held several roles including editorial, promotions, and cover disc editing.

Read More Show Less

Table of Contents

Dedication;
Preface;
Audience;
Assumptions This Book Makes;
Organization of This Book;
Supporting Books;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Acknowledgments;
Content Updates;
Chapter 1: Introduction to Dynamic Web Content;
1.1 HTTP and HTML: Berners-Lee’s Basics;
1.2 The Benefits of PHP, MySQL, JavaScript, and CSS;
1.3 The Apache Web Server;
1.4 About Open Source;
1.5 Bringing It All Together;
1.6 Test Your Knowledge;
Chapter 2: Setting Up a Development Server;
2.1 What Is a WAMP, MAMP, or LAMP?;
2.2 Installing a WAMP on Windows;
2.3 Installing a MAMP on Mac OS X;
2.4 Installing a LAMP on Linux;
2.5 Working Remotely;
2.6 Using a Program Editor;
2.7 Using an IDE;
2.8 Questions;
Chapter 3: Introduction to PHP;
3.1 Incorporating PHP Within HTML;
3.2 This Book’s Examples;
3.3 The Structure of PHP;
3.4 Test Your Knowledge;
Chapter 4: Expressions and Control Flow in PHP;
4.1 Expressions;
4.2 Operators;
4.3 Conditionals;
4.4 Looping;
4.5 Implicit and Explicit Casting;
4.6 PHP Dynamic Linking;
4.7 Test Your Knowledge;
Chapter 5: PHP Functions and Objects;
5.1 PHP Functions;
5.2 Including and Requiring Files;
5.3 PHP Version Compatibility;
5.4 PHP Objects;
5.5 Test Your Knowledge;
Chapter 6: PHP Arrays;
6.1 Basic Access;
6.2 The foreach...as Loop;
6.3 Multidimensional Arrays;
6.4 Using Array Functions;
6.5 Test Your Knowledge;
Chapter 7: Practical PHP;
7.1 Using printf;
7.2 Date and Time Functions;
7.3 File Handling;
7.4 System Calls;
7.5 XHTML;
7.6 Test Your Knowledge;
Chapter 8: Introduction to MySQL;
8.1 MySQL Basics;
8.2 Summary of Database Terms;
8.3 Accessing MySQL via the Command Line;
8.4 Indexes;
8.5 MySQL Functions;
8.6 Accessing MySQL via phpMyAdmin;
8.7 Test Your Knowledge;
Chapter 9: Mastering MySQL;
9.1 Database Design;
9.2 Normalization;
9.3 Relationships;
9.4 Transactions;
9.5 Using EXPLAIN;
9.6 Backing Up and Restoring;
9.7 Test Your Knowledge;
Chapter 10: Accessing MySQL Using PHP;
10.1 Querying a MySQL Database with PHP;
10.2 A Practical Example;
10.3 Practical MySQL;
10.4 Test Your Knowledge;
Chapter 11: Form Handling;
11.1 Building Forms;
11.2 Retrieving Submitted Data;
11.3 An Example Program;
11.4 Test Your Knowledge;
Chapter 12: Cookies, Sessions, and Authentication;
12.1 Using Cookies in PHP;
12.2 HTTP Authentication;
12.3 Using Sessions;
12.4 Test Your Knowledge;
Chapter 13: Exploring JavaScript;
13.1 JavaScript and HTML Text;
13.2 Using Comments;
13.3 Semicolons;
13.4 Variables;
13.5 Operators;
13.6 Variable Typing;
13.7 Functions;
13.8 Global Variables;
13.9 The Document Object Model (DOM);
13.10 Test Your Knowledge;
Chapter 14: Expressions and Control Flow in JavaScript;
14.1 Expressions;
14.2 Operators;
14.3 The with Statement;
14.4 Using onerror;
14.5 Using try...catch;
14.6 Conditionals;
14.7 Looping;
14.8 Explicit Casting;
14.9 Test Your Knowledge;
Chapter 15: JavaScript Functions, Objects, and Arrays;
15.1 JavaScript Functions;
15.2 JavaScript Objects;
15.3 JavaScript Arrays;
15.4 Test Your Knowledge;
Chapter 16: JavaScript and PHP Validation and Error Handling;
16.1 Validating User Input with JavaScript;
16.2 Regular Expressions;
16.3 Redisplaying a Form After PHP Validation;
16.4 Test Your Knowledge;
Chapter 17: Using Ajax;
17.1 What Is Ajax?;
17.2 Using XMLHttpRequest;
17.3 Implementing Ajax via POST Requests;
17.4 Using GET Instead of POST;
17.5 Sending XML Requests;
17.6 Using Frameworks for Ajax;
17.7 Test Your Knowledge;
Chapter 18: Introduction to CSS;
18.1 Importing a Style Sheet;
18.2 Embedded Style Settings;
18.3 CSS Rules;
18.4 Style Types;
18.5 CSS Selectors;
18.6 The CSS Cascade;
18.7 The Difference Between
and ;
18.8 Measurements;
18.9 Fonts and Typography;
18.10 Managing Text Styles;
18.11 CSS Colors;
18.12 Positioning Elements;
18.13 Pseudoclasses;
18.14 Pseudoelements;
18.15 Shorthand Rules;
18.16 The Box Model and Layout;
18.17 Test Your Knowledge;
Chapter 19: Advanced CSS with CSS3;
19.1 Attribute Selectors;
19.2 The box-sizing Property;
19.3 CSS3 Backgrounds;
19.4 CSS3 Borders;
19.5 Box Shadows;
19.6 Element Overflow;
19.7 Multicolumn Layout;
19.8 Colors and Opacity;
19.9 Text Effects;
19.10 Web Fonts;
19.11 Transformations;
19.12 Transitions;
19.13 Test Your Knowledge;
Chapter 20: Accessing CSS from JavaScript;
20.1 Revisiting the getElementById Function;
20.2 Accessing CSS Properties from JavaScript;
20.3 Inline JavaScript;
20.4 Adding New Elements;
20.5 Using Interrupts;
20.6 Test Your Knowledge;
Chapter 21: Bringing It All Together;
21.1 Designing a Social Networking Site;
21.2 On the Website;
21.3 functions.php;
21.4 header.php;
21.5 setup.php;
21.6 index.php;
21.7 signup.php;
21.8 checkuser.php;
21.9 login.php;
21.10 profile.php;
21.11 members.php;
21.12 friends.php;
21.13 messages.php;
21.14 logout.php;
21.15 styles.css;
Solutions to the Chapter Questions;
Chapter 1 Answers;
Chapter 2 Answers;
Chapter 3 Answers;
Chapter 4 Answers;
Chapter 5 Answers;
Chapter 6 Answers;
Chapter 7 Answers;
Chapter 8 Answers;
Chapter 9 Answers;
Chapter 10 Answers;
Chapter 11 Answers;
Chapter 12 Answers;
Chapter 13 Answers;
Chapter 14 Answers;
Chapter 15 Answers;
Chapter 16 Answers;
Chapter 17 Answers;
Chapter 18 Answers;
Chapter 19 Answers;
Chapter 20 Answers;
Online Resources;
PHP Resource Sites;
MySQL Resource Sites;
JavaScript Resource Sites;
Ajax Resource Sites;
Miscellaneous Resource Sites;
O’Reilly Resource Sites;
MySQL’s FULLTEXT Stopwords;
MySQL Functions;
String Functions;
Date Functions;
Time Functions;
Colophon;
Read More Show Less

Customer Reviews

Average Rating 2
( 1 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(1)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted February 22, 2013

    All I can say is I felt a little bit like Daniel Larusso on the

    All I can say is I felt a little bit like Daniel Larusso on the Karate Kid. I had no idea why but I waxed the cars, painted the fence, and even sanded the floor but when it came time for the tournament, I was not confident I could throw any punches or block any kicks. I think I will have to find a different Mr. Miyagi before I feel confident enough step in to the ring.

    1 out of 4 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)