PHP & MySQL: Server-side Web Development (Paperback)

Jon Duckett

買這商品的人也買了...

商品描述

Learn PHP, the programming language used to build sites like Facebook, Wikipedia and WordPress, then discover how these sites store information in a database (MySQL) and use the database to create the web pages.

This full-color book is packed with inspiring code examples, infographics and photography that not only teach you the PHP language and how to work with databases, but also show you how to build new applications from scratch. It demonstrates practical techniques that you will recognize from popular sites where visitors can:

  • Register as a member and log in
  • Create articles, posts and profiles that are saved in a database
  • Upload their own images and files
  • Automatically receive email notifications
  • Like and comment on posts.

To show you how to apply the skills you learn, you will build a complete content management system, enhanced with features that are commonly seen on social networks.

Written by best-selling HTML & CSS and JavaScript & jQuery author Jon Duckett, this book uses a unique visual approach, with step-by-step instructions, practical code examples and pro tips that will teach you how to build modern database-driven websites using PHP.

商品描述(中文翻譯)

學習 PHP,這是用於建立像 Facebook、Wikipedia 和 WordPress 等網站的程式語言,然後了解這些網站如何將資訊存儲在數據庫(MySQL)中並使用數據庫來創建網頁。

這本全彩色書籍充滿了激勵人心的代碼示例、信息圖和照片,不僅教授 PHP 語言和如何與數據庫一起工作,還展示了如何從頭開始構建新應用程序。它演示了實用的技術,這些技術您可以在訪問者可以:

- 註冊成為會員並登錄
- 創建保存在數據庫中的文章、帖子和個人資料
- 上傳自己的圖像和文件
- 自動接收電子郵件通知
- 對帖子點讚和評論

為了展示如何應用所學的技能,您將構建一個完整的內容管理系統,並增加了在社交網絡上常見的功能。

這本書由暢銷的 HTML & CSS 和 JavaScript & jQuery 作者 Jon Duckett 撰寫,採用獨特的視覺方法,提供逐步指導、實用的代碼示例和專業技巧,教您如何使用 PHP 構建現代的數據庫驅動網站。

作者簡介

Jon Duckett is the world-wide best-selling author of HTML & CSS: Design and Build Websites and JavaScript & JQuery: Interactive Front-End Web Development. His books have sold more than 400,000 copies in English and been translated into 10 languages. His "nicer way to learn" features a high-visual breakdown of code and concepts. LifeHacker called JavaScript & jQuery "the most elegant, visually engaging book you can learn JavaScript from." When he's not writing best-selling books, Jon has spent the last 15 years designing and building websites for companies ranging from small startups to globally recognized brands.

作者簡介(中文翻譯)

Jon Duckett是全球暢銷書籍《HTML & CSS: Design and Build Websites and JavaScript》和《JQuery: Interactive Front-End Web Development》的作者。他的書籍在英文版已經賣出超過40萬本,並被翻譯成10種語言。他的書籍以「更好的學習方式」為特色,提供了對代碼和概念的高視覺化解析。LifeHacker稱JavaScript & jQuery為「你可以從中學習JavaScript的最優雅、視覺上引人入勝的書籍」。在不寫暢銷書籍的時候,Jon在過去的15年裡為從小型初創企業到全球知名品牌的公司設計和建立網站。

目錄大綱

Introduction 1

Section A Basic Programming Instructions 17

Chapter 1 Variables, Expressions & Operators 29

Chapter 2 Control Structures 67

Chapter 3 Functions 103

Chapter 4 Objects & Classes 143

Section B Dynamic Web Pages 177

Chapter 5 Built-In Functions 201

Chapter 6 Getting Data From Browsers 231

Chapter 7 Images & Files 285

Chapter 8 Dates & Times 309

Chapter 9 Cookies & Sessions 329

Chapter 10 Error Handling 349

Section C Database Driven Websites 381

Chapter 11 Structured Query Language 397

Chapter 12 Get & Show Data From a Database 433

Chapter 13 Updating Data in a Database 483

Section D Extending the Sample Application 521

Chapter 14 Refactoring & Dependency Injection 533

Chapter 15 Namespaces & Libraries 557

Chapter 16 Membership 603

Chapter 17 Adding Functionality 633

Index 662

Code download: http://phpandmysql.com

目錄大綱(中文翻譯)

導言 1

第一節 基本程式設計指令 17

第一章 變數、運算式和運算子 29

第二章 控制結構 67

第三章 函式 103

第四章 物件和類別 143

第二節 動態網頁 177

第五章 內建函式 201

第六章 從瀏覽器取得資料 231

第七章 圖片和檔案 285

第八章 日期和時間 309

第九章 Cookies和Sessions 329

第十章 錯誤處理 349

第三節 資料庫驅動的網站 381

第十一章 結構化查詢語言 397

第十二章 從資料庫取得和顯示資料 433

第十三章 更新資料庫中的資料 483

第四節 擴展範例應用程式 521

第十四章 重構和依賴注入 533

第十五章 命名空間和函式庫 557

第十六章 會員資格 603

第十七章 增加功能 633

索引 662

程式碼下載: http://phpandmysql.com