Bummer! You must be logged in to access this page.

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 and Database to change content

Okay I may be a little in over my head but I have a client currently that I have built out an HTML one page site for, and everything is works great. But I want to build a small and simple backend that they can use to change portfolio items (video link, title and thumbnail need to be replaced in HTML) and a couple other small things.

A friend of mine suggested PHP but I have never really learned any PHP lol I am using bootstrap if that makes a difference! If anyone can point me in the right direction? Ive been freaking out for the past 2 days lol

5 Answers

Hey Denis,

I would suggest using PHP if the client isn't comfortable modifying the html code directly and using FTP to upload files and such. Treehouse has some really great php courses that could teach you how to implement the functionality of having a user log in to an admin panel and upload files, manage links, ect.

http://teamtreehouse.com/library/topic:learn-php

You might want to check out WordPress. The back end is already built and it would probably be a lot easier than building a back end from scratch. There may also be an open source php program already built for exactly what you want to do. You can checkout github and they may have something there. But it most likely will require some php knowledge to setup. If you have the time to learn php there are some really good videos on treehouse that I recommend. Probably your best bet if you need this quickly would be WordPress.

Wordpress seems like it would be faster and easier for me to do over PHP! I will look into it tomorrow, and post back with what I decide to do. Mike maybe you can point me in the right direction as far as which PHP course would be fitting for this situation,

Maybe this one? http://teamtreehouse.com/library/converting-an-html-site-to-a-php-micro-framework

Honestly it feels a little too advanced, I will look into both methods more in the morning tomorrow! Thanks fellas!

If anyone has any specific information that would help feel free to chip in! Be back in the AM!

Well all those frameworks and cms systems are created for people with limited knowledge, budget and time so WordPress will be the best solution in your situation. However, you still need to see some of the courses to implement layout. In my opinion, you should still learn php and databases to get more of it.

Looking into it I believe Wordpress will be the easiest solution for me! The design I have is a simple one page and the 3 main things I need to be able to do inside the admin section is add portfolio items and change them, change the content inside of my full screen carousel and be able to add new slides (image, text, and video link) also there will be 3 other subpages with content that will need to be updated as well.

Now I am not sure where to begin as far as which tutorial would teach me all of this stuff! The way I see it I have the Bootstrap to Wordpress course which works well since I am using Bootstrap, but am not sure if it will teach me what I need.

And then there is this one: http://teamtreehouse.com/library/one-page-wordpress-site

But I need a pro account to view that one and the preview does not tell me much. Wondering if you guys can advise further, don't want to waste a bunch of time I have a deadline within a week! Thanks guys