Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

PHP and MySQL

Okay so I have completed the create a basic php site course and php with MySQL course. With these I know how to get data from a MySQL database and display on page, now is there a course that will teach me how to add forms to add data to MySQL?

2 Answers

In a round about way yes.

You should know how to send form data to a PHP file, and retrieve that form data with $_GET or $_POST.

Take the database foundations course. It will teach you to write SQL statements.

Than you can put the two together, by writing SQL statements in your PHP file, and having the data that get's inserted into the SQL statement and database, a PHP variable from whatever was in the forms input.

Okay thanks Kevin