If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

How do I modify the text file??
Each entries (or row) have 5 elements in it and there are multiple entries in my database.
How do I write each elements follow by a comma onto a text file? Each row in the database would have a new line in my text file as well.

I had an old file, dusted it off. It caused me a lot of nightmares so wrote from scratch.

PHP Code:

<?phprequire('inc/DB_connect.php'); // Your connect to databaseunlink('MyFile.cvs'); // used this because I was writing the file hunderds of times. You may not need$fp = fopen("MyFile.cvs", "w"); // Opened the file for writting$DbFile = 'clan_members'; // Put the name of your table here