Tài liệu về học lập trình web bằng ngôn ngữ PHP cho tất cả mọi người.
[...]... but important PHP and MySQL tidbits Besides, once you’re done here, all that’s left are a couple short appendices and the index and maybe some ads and then you’re really done We promise! #1 Retrofit this book for PHP4 and mysql functions 714 #2 User permissions in MySQL 716 #3 Error reporting for MySQL 718 #4 Exception handling PHP errors 719 #5 Object-oriented PHP 721 #6 Securing your PHP application... install the mysqli extension and GD graphics library extension Then we’ll mention a few more extensions to PHP you might want to get Because sometimes it’s okay to want more Extending your PHP 750 And on the Mac 753 e You should se and php_ gd2.dlldll php_ mysqli Grab the version of mysqli to match your version of PHP xxv how to use this book Intro I can’t believe they put that in a PHP & MySQL book... add data to and retrieve data from your web application, before you can do that you need to understand the syntax of both PHP and MySQL So we begin by giving you PHP and MySQL statements that you can actually try yourself That way you can immediately do something with PHP and MySQL, and you will begin to get excited about them Then, a bit later in the book, we show you good application and database... need them and retrieve them when you want them A MySQL database can store your data for safe keeping But you need to hook up your PHP script to the MySQL database to make it happen Owen’s PHP form works well Too well 60 MySQL excels at storing data 61 Owen needs a MySQL database 62 Create a MySQL database and table 67 Use SELECT to get table data 70 Let PHP handle the tedious SQL stuff 73 PHP lets... server, MySQL, and PHP to give you a safe place to work and practice Create a PHP development environment Find out what you have 732 Do you have a web server? 733 Do you have PHP? Which version? 733 Do you have MySQL? Which version? Server computer 732 734 735 737 Installing MySQL 738 Steps to Install MySQL on Windows 739 742 Steps to Install MySQL on Mac OS X Database server Start with the Web Server PHP. .. templates 424 Mismatch is whole again and much better organized 426 The header appears at the top of every Mismatch page, and displays the application title as well as a page-specific title header .php startsession .php Every Mismatch page that’s personalized to a user requires log-in code that keeps track of the user navmenu .php The navigation menu appears just below the header, and provides each Mismatch page... a solid grasp of the syntax you need, and can focus on learning the concepts We don’t cover every PHP and MySQL statement, function, or keyword While we could have put every single PHP and MySQL statement, function, and keyword in this book, we thought you’d prefer to have a reasonably liftable book that would teach you the most important statements, functions, and keywords We give you the ones you... 727 #9 What’s the difference between PHP 5 and PHP 6 728 #10 Reusing other people’s PHP 730 Dataville Savings & Loan xxiii table of contents ii set up a development environment A place to play You need a place to practice your newfound PHP and MySQL skills without making your data vulnerable on the web It’s always a good idea to have a safe place to develop your PHP application before unleashing it... In this section we answer the PHP & MySQL book?” why DID they put that in a xxvii how to use this book Who is this book for? If you can answer “yes” to all of these: 1 Are you a web designer with HTML or XHTML experience and a desire to take your web pages to the next level? 2 Do you want to go beyond simple HTML pages to learn, understand, and remember how to use PHP and MySQL to build web applications?... motivate t, ns in your head A rea knowledge And for tha s, nothing much happe neuron and generate new ms, draw conclusions, olve proble ies that inv and inspired to solve questions, and activit and thought-provok ing d challenges, exercises, you nee and multiple senses both sides of the brain lly want to learn We’ve all had the “I rea t reader’s attention he attention to things tha Get and keep—t ence Your