sitepoint - day7 - php live lesson 7 _adding and removing content with php_

Post on 23-Mar-2016

213 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Experienced PHP coders will find this a doddle, so if that’s you, please give the beginners a chance to answer this one, okay? No one likes a know-it-all. :) Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help Lesson 1: PHP & MySQL Lesson 2: Your First Database Lesson 3: Introducing PHP Lesson 4: PHP Language Lesson 5: Recorded Q&A Week 1 Week 2 Week 3 Watch a video: Welcome to Day 7 Download today’s code: day7code.zip (9KB) You are logged in as: Lessons

TRANSCRIPT

Become a better web developer.

Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help

You are logged in as:

adminloozer x

SitePoint Courses > PHP Live > Adding and Removing Content with PHP

← Back to the dashboard

Lesson 7: Adding and Removing Content with PHP

Today we’ll enhance the Joke List example to enable visitors to your site to manipulate

the site’s content right in their browsers.

Today’s Tasks

Watch a video: Welcome to Day 71.

Download today’s code: day7code.zip (9KB)2.

Read an article: Inserting Data into the Database

In this article, I’ll demonstrate how to use the tools at your disposal to enable site

visitors to add their own jokes to the database.

3.

Read an article: Deleting Data from the Database

In this article, we’ll make one final enhancement to our joke database site. We’ll

place next to each joke on the page a button labeled Delete that, when clicked, will

remove that joke from the database and display the updated joke list.

4.

Join a Discussion: Editing existing jokes?

Today we’ve seen how to add and remove jokes using the magic of PHP and MySQL,

but what if we wanted to enable our visitors to edit existing jokes? I’m not asking

you to write any code here, but try thinking through what your approach to this

problem would be. Where do you think you’d get stuck? Post your thoughts in the

forum and compare notes in preparation for next week, when we will tackle this

problem for realsies!

Experienced PHP coders will find this a doddle, so if that’s you, please give the

beginners a chance to answer this one, okay? No one likes a know-it-all. :)

5.

That’s all for Lesson 7! Next up is Database Design: Multi-table Queries.

All done for this lesson? Tell the world via Twitter!

Lessons

Week 1Lesson 1: PHP & MySQL

Lesson 2: Your First Database

Lesson 3: Introducing PHP

Lesson 4: PHP Language

Lesson 5: Recorded Q&A

Week 2Lesson 6: Displaying MySQL Content

Lesson 7: Adding and Removing

Content with PHP

Lesson 8: Database Design: Multi-table

Queries

Lesson 9: Database Design: Complex

Relationships

Lesson 10: Recorded Q&A

Week 3Lesson 11: Structured PHP

Programming

Lesson 12: A Content Management

System (#1)

Lesson 13: A Content Management

System (#2)

Lesson 14: Sessions and Access

Control

Lesson 15: Recorded Q&A

Back to the dashboard

Search this site

PHP Live Lesson 7 "Adding and Removing Content with PHP" http://courses.sitepoint.com/php-live/lesson/7

1 sur 2 14/12/2010 16:24

Web Design & Development by SitePoint Solutions, Melbourne, Australia | Logo Design, Web page Design: 99designs.com Back to top

I’ve completed this lesson.

Leave more feedback for the

instructor:

Have a question about this lesson?

Visit the forum

Need help with your account? Email

the team

PHP Live Lesson 7 "Adding and Removing Content with PHP" http://courses.sitepoint.com/php-live/lesson/7

2 sur 2 14/12/2010 16:24

top related