Hello, you need to implement the unloading from the MySQL table to the test file.

That is, I have a table for example with the string email.

How to make for example a button on the site to download all email from the mysql table to the test file?

enter image description here

    1 answer 1

    It is done elementary using SELECT ... INTO OUTFILE

    • At SO, a considerable number of questions can be answered "done elementary." The only problem is that not all the same can be elementary. I think a full-fledged example in the answer would be better. And the answer was safely in the queue, "messages of poor quality," which is also not without purpose. - Regent
    • The question was to be there. In a subject one question (about request in MySQL), in the text absolutely other (about creation of the button on the site). Write to the author a response with an example. Perhaps he will not start asking where to insert it into the code of the web page .. - Akina
    • I forgot about the magic "button on the site", sorry. I meant an example of a full-fledged SQL query, and not a button code. And no, thanks: I didn’t want to get involved with this question 4 hours ago, I still don’t want to. Painfully muddy, he seems to me. But, you see, in the current form, your answer pulls only on the comment. - Regent
    • Probably. But to delete it and move the text to the comment stupidly lazy. - Akina