Solved

The best way to fill db rows in certain way that i can get each details to be displayed on it related div using XMLHttpRequest

Posted on 2015-01-22
3
13 Views
Last Modified: 2016-05-20
Hello
I do need to make a database fetch using jquery  XMLHttpRequest
so i need to get related rows in the db query to be arranged in a way where i can get them displayed on the XMLHttpRequest response each details on their related div

What i exactly need the jquery function + php file ( i can take care of the db query stuff )


Thank you.
0
Comment
Question by:jaylab2
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
This article should help you get started:
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Jquery/A_10712-The-Hello-World-Exercise-with-jQuery-and-PHP.html

PHP can turn almost any kind of data, including rows from a data base into a JSON representation.
http://php.net/manual/en/function.json-encode.php

You will probably want to learn about using JSON with jQuery (and if you truly understand jQuery, you will probably want to move to AngularJS instead).
http://api.jquery.com/jquery.getjson/
http://api.jquery.com/jquery.parsejson/
http://www.sitepoint.com/ajaxjquery-getjson-simple/
0
 

Author Comment

by:jaylab2
Comment Utility
Hello
Thank you Ray for your reply but i get into these but it get a little bit confused can you please
give a small and simple example here that could make my life easier
Thank you in advance.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now