Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Using PHP with MySQL Querying the Database with PHP Modifying Model Code

Regarding Shirts4Mike project using MySQL

Hi,

I build a site for Shirts4Mike with the help of a the course work - Build a Simple PHP Application. I want to extend the application to make use of MySQL. I figured out that the course Using PHP with Mysql helps do that. I am confused if the 2nd course is an extension of the first one or based on some other module? I was trying to edit the products.php from my previous learning on building a simple php site to include MySQL but the code looks different here in the MySQL course work. Could you please suggest? The final products.php after completing Build a Simple PHP Application has the function get_list_view_html but in the Using PHP with MySQL shows the products.php has a function get_products_all() function, which I am not sure where we called in the Build a Simple PHP Application module.

Thanks Manjusha

1 Answer

Well it is a mess really. I am in a similiar situation as you and it seems a lot of extra code was added in a different lesson. So we have effectively skipped it.