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

Wendell Pulsipher
10,183 PointsPHP with AJAX
I have always admired the clarity with which the teachers at treehouse explain concepts illustrated in their videos. I have had major trouble finding a place online that clearly describes how to solve a problem I am having with my code though. I have a page that uses php and sql to display articles and videos stored on a database in a feed that users see on their profile. However, I am trying to get a link at the bottom of that list to display another/more post(s) by the currently logged user when clicked without reloading the page. I read that this is possible with PHP and AJAX. Could someone please show us how to do that?
6 Answers

Hampton Paulk
5,093 PointsWendell Pulsipher would this post help you out at all? more php jQuery projects
What else would you be interested in seeing?

Wendell Pulsipher
10,183 Pointsokay so I went and watched that video... which did help quite a bit, but I do have another question.
I'm trying to pull information about users entries from a database. Each entry in the database has multiple rows with values that I'm trying to store in the array that's returned to my js/ajax file through the PHP file. I tried logging, as arrays, the entries and their rows from the database to the console in chrome and what I'm getting from that is this multidimensional array:
[Object, Object, Object, Object, Object, Object, Object, Object] 0: Object 1: Object 2: Object 3: Object 4: Object 5: Object 6: Object 7: Object
and each object (0-9) has an arrow next to it. When I click it the info I want to use does display as parameters of, but I can't seem to find out how to extract and use the data in each row of each object 0-9 ... I'm assuming there's some javascript tool I'm missing here?

Harry Anderson
3,673 PointsI second that. An AJAX tutorial would definitely be helpful. In the meantime, I am hoping that Ryan and the Treehouse Team could post a link to this thread to some good intro AJAX content.

Harry Anderson
3,673 PointsIn the meantime, Wendell, I found this tutorial that is a basic intro to interfacing PHP and AJAX. Hope it may be helpful to you:

Harry Anderson
3,673 PointsYou may be more interested in this example actually:

Wendell Pulsipher
10,183 Pointsthanks, but I find many text only tutorials like those you posted to not be explanatory enough for me (not in depth enough). I'll just wait and see if Ryan or any of the instructors post a video about this

Wendell Pulsipher
10,183 PointsYes! Oh thank you thank you thank you thank you thank you!!! I have trying to find something like this for soooo long! I will have to tweak the types of information that goes into the 'post' submission when I apply this to my project, but all I needed was for this concept to be illustrated in detail. Thanks again :D I may be back on this thread with questions about my specific project but we'll see.
Oh, I just remember that you asked what else I would like to see. How about some Java videos? I would LOVE to learn Java as well.
Harry Anderson
3,673 PointsHarry Anderson
3,673 PointsI second that. An AJAX tutorial would definitely be helpful. In the meantime, I am hoping that Ryan and the Treehouse Team could post a link to this thread to some good intro AJAX content.