send the row and column data in the query string. Then on the webserver respond with the data instead of a HTML page.
It should use the same method you are already using to store the data.
Need the SQL? Post your table layout ( column names & data types ) and maybe a few rows of sample data, your task is quite simple.