Download this publication as PDF

9 downloads 156 Views 248KB Size Report
Thank you for downloading the first four chapters of Kevin. Yank's Build Your Own Database Driven Website Using PHP and. MySQL. This excerpt encapsulates ...

Build Your Own Database Driven Website Using PHP and MySQL (First 4 Chapters) Thank you for downloading the first four chapters of Kevin Yank’s Build Your Own Database Driven Website Using PHP and MySQL. This excerpt encapsulates the Summary of Contents, Information about the Author and SitePoint, Table of Contents, Introduction, and the first four chapters of the book. We hope you find this information useful in evaluating the book.

For more information, visit sitepoint.com

Summary of Contents of this Excerpt Introduction ................................................................................. 1 1. Installation ............................................................................... 7 2. Getting Started with MySQL ................................................ 35 3. Getting Started with PHP ..................................................... 49 4. Publishing MySQL Data on the Web ................................... 69

Summary of Additional Book Contents 5. Relational Database Design................................................... 85 6. A Content Management System ........................................... 99 7. Content Formatting and Submission .................................. 121 8. MySQL Administration ....................................................... 137 9. Advanced SQL ..................................................................... 153 10. Advanced PHP ................................................................... 169 11. Storing Binary Data in MySQL ........................................ 185 12. Cookies and Sessions in PHP............................................ 197 A. MySQL Syntax .................................................................... 211 B. MySQL Functions ............................................................... 233 C. MySQL Column Types ....................................................... 251 D. PHP Functions for Working with MySQL ........................ 261 Index......................................................................................... 273

Build Your Own Database Driven Website using PHP & MySQL by Kevin Yank

Build Your Own Database Driven Website using PHP & MySQL by Kevin Yank Copyright ' 2003 SitePoint Pty. Ltd. Editor: Georgina Laidlaw Cover Design: Julian Carroll Printing History: First Edition: August 2001 Second Edition: February 2003

Notice of Rights All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews.

Notice of Liability The author and publisher have made every effort to ensure the accuracy of the information herein. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held liable for any damages to be caused either directly or indirectly by the instructions contained in this book, or by the software or hardware products described herein.

Trademark Notice Rather than indicating every occurrence of a trademarked name as such, this book uses the names only in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of the trademark.

Published by SitePoint Pty. Ltd. Suite 6, 50 Regent Street Richmond VIC Australia 3121. Web: www.sitepoint.com E-Mail: [email protected] ISBN 0-9579218-1-0 Printed and bound in the United States of America

About the Author Kevin Yank is the Technical Business Director for SitePoint, author of numerous well received tutorials and articles, and editor of the SitePoint Tech Times, an extremely popular technically-oriented newsletter for Web developers. Before graduating from McGill University in Montreal with a Bachelor of Computer Engineering, Kevin was not only a budding Web developer himself, but also an active advisor for the Sausage Software Web Development Forums, and writer of several practical guides on advanced HTML and JavaScript. These days, when he's not discovering new technologies, writing books, or catching up on sleep, Kevin can be found helping other up-and-coming Web developers in the SitePoint Forums.

About SitePoint SitePoint is a modern day publisher with a particular focus on Web development. Publishing activities are focused around three main areas: sitepoint.com: Online resource for Web designers and developers. SitePoint Books: Printed books available directly through sitepoint.com. SitePoint Email Newsletters: Enlightening editorials, articles, reviews, and case studies. A big part of SitePoint is the Community Forums, located at sitepointforums.com. Frequented by tens of thousands of Web developers, SitePoint Forums serve as a central discussion hub for Web professionals worldwide. Visit SitePoint at http://www.sitepoint.com/.

To my parents, Cheryl and Richard, for making all this possible.

ii