4.3 Updating Data
Next, we need the ability to update a post. We'll read an existing post from the database and use it to populate an edit form. Then we'll validate the form input before updating the post in the database. In this lesson, I'll also introduce you to the concept of SQL injection attacks, and you'll learn how to avoid them to make your applications more secure.