Hi!
what I need to do, seems not to be difficult:
I have a mysql query, and iI need tha when the user clicks a link, that result of the query be transformed into a csv file, for the user to download
example: <a>download here your query</a>
question: how do I do that? can someone show me an example?
here is one of my queries:
mysql_select_db($database_liga, $liga);
$query_rsTrial = "SELECT users.email FROM users WHERE (users.todas = 's') OR (users.trial = 's') ORDER BY users.email";
$rsTrial = mysql_query($query_rsTrial, $liga) or die(mysql_error());
$row_rsTrial = mysql_fetch_assoc($rsTrial);
$totalRows_rsTrial = mysql_num_rows($rsTrial);
I know I have to insert headers somewhere... where?
many thx in advance