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 trialRichard Contreras
7,026 PointsWhat languages/skills do I need to learn to build an interactive directory for my website?
I am building a website that is a directory of merchants. It's pretty simple: name of merchant, website link, brief description, and a category.
Besides, HTML and CSS, what are concepts I need to learn in order to sort these merchants into an interactive directory? Something where the user could sort the merchants alphabetically or by category. I'd also like the user to be able to jump to the last page of search results (e.g., if I had 1000 merchants whose name start with K, and I'm listing 25 merchants per page, I'm thinking the user would have something like this as an option: < 1 2 3 ... LAST >).
I'm not asking for specific lines of codes or plug-ins. Much broader. Something like, "Learn SQL and these concepts from it." Is SQL the best way to build this sort of directory?
1 Answer
Brendon Butler
4,254 PointsThere are a few ways that I can think of that you can accomplish this. I would say that PHP or Javascript would be the easiest way to do this. And for each page you would use a system called pagination.
There are all kinds of data storage types you can use such as SQL, JSON, and some others. I added a couple links for each PHP (using SQL) and Javascript (using JSON). They are interchangeable and you can even have Javascript in your PHP.
I would recommend going through the PHP and Javascript courses to learn those (as you will probably eventually want to learn those anyways).