I have created a webpage and a SQL database runs in the background. When user enters options in the query page of my webpage, they get some tables with results. I want to provide an option to the user to download the results in tab-separated, tabular (excel) and PDF formats (at least in one format). I have no clue what this procedure is called in HTML and php scripting and how to do it. I would be grateful if someone of you could help me.