defmer
12-29-2008, 02:51 AM
I have a very very limited knowledge about Ajax, JS and PHP, so I could really use help is trying to finish this. OK that said,
1) what I am trying to do is send request to a php page using XMLHttpRequest in jS to get records from a mysql database.
2) The request to the database returns 4 columns of data with over 2000 rows.
3) I managed to use html_Table.php to print out the table from php itself. But I actually need to get the data back to client side (JS) for formating and other formating stuff. I tried everything to get the data to the client side but nothing seems to work.
so how do I pass this table to the client side? if there is no way to do that then , how do I pass/return and access the data which is represent as 4 Row X 2000 COL.
I did try to return an array but was only able to successfully return one row with every request to php. I had formated each element of the row as "'john, ohio, 5555555, 12345". which is not helpful.
I really appreciate any help with this problem. thank you.
P.S. I am attaching my files along with this post. I had to change the extensions so that I could attach them.
1) what I am trying to do is send request to a php page using XMLHttpRequest in jS to get records from a mysql database.
2) The request to the database returns 4 columns of data with over 2000 rows.
3) I managed to use html_Table.php to print out the table from php itself. But I actually need to get the data back to client side (JS) for formating and other formating stuff. I tried everything to get the data to the client side but nothing seems to work.
so how do I pass this table to the client side? if there is no way to do that then , how do I pass/return and access the data which is represent as 4 Row X 2000 COL.
I did try to return an array but was only able to successfully return one row with every request to php. I had formated each element of the row as "'john, ohio, 5555555, 12345". which is not helpful.
I really appreciate any help with this problem. thank you.
P.S. I am attaching my files along with this post. I had to change the extensions so that I could attach them.