Chapter 3: Introducing MySQL

In Chapter 1, we booted the Homestead Improved virtual machine. The virtual machine contains all the software we need, including a MySQL server.

As I explained in that chapter, PHP is a server-side scripting language that lets you insert instructions into your web pages that your web server software will execute before it sends those pages to browsers that request them. We’ve looked at a few basic examples including generating random numbers and using forms to capture input from a user.

Now, that’s all well and good, but it really gets interesting when a database is added to the mix. In this chapter, we’ll learn what a database is, and how to work with your own MySQL databases using Structured Query Language (SQL). ...

Get PHP & MySQL: Novice to Ninja, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.