Querying MySQL and displaying results in Table

Querying MySQL and displaying results in Table

Hello,

I am absolutely new to Javascript, jQuery, PHP.
What I want to do is let the user input a file, then read the contents send it to the server, loop over the inputs to query MySQL, return the results and display it in a user friendly, scrollable table?

How can I use JavaScript/jQuery for this?
Any kind of help would be great.

Thanks

-Yogesh