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 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.