Hack Forums
[PHP] Take all of a row and generate into a file. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183)
+---- Thread: [PHP] Take all of a row and generate into a file. (/showthread.php?tid=5784344)



Take all of a row and generate into a file. - JAS - Jan 13, 2018

Slightly simple when you think about it

In a table called users i have a row called email , I want to take all of them and put them in a list.

How do i go about doing so?

I get its mysql however there isnt a section for that so i deemed this the most appropraite place.


RE: Take all of a row and generate into a file. - Temp_reassign - Jan 13, 2018

Try this;

Code
Mysqli_query( "Select Email_row FROM User_Table INTO OUTFILE /tmp/notepad.txt")

PS: make certain to use Mysqli and not Mysql.


RE: Take all of a row and generate into a file. - RumbleFrog - Jan 14, 2018



And there's a section for SQL: https://hackforums.net/forumdisplay.php?fid=300