here's my problem, I have written some code that update a table with ajax, after have written it with php:
query = ""
echo <table>
I need to put an input elements after the table generated which extract it with php, it should come something like that:
query = ""
row = mysql_fetch_array(query)
echo <div id="table">
echo <table>
echo </table>
echo <input type=submit value=Extract as Excel or CSV>
echo </div>
The table is yet updated with an ajax function that run a file like getvalue.php?q=id passed" that change the value in the div making another query.
Well I need the input extract to work but I can't figure out how to pass the query through ajax or php, I can pass the array but it's not what I need