Hi
I'm in desperate need of some help with php and text files. What I am looking to do is enter some details into a text file and keep it a database
The details:
Customer_email [{, link_category-N}]
An example of the text file line would be.
john@dummy.HereOrThere.ac.uk,Golf-1
The code iv'e got so far is
<?php
$Email = 'Test';
$Catagory = 'TestC';
$Visits = 'TestV';
$file="Users.txt";
$fileopen=fopen ("$file","w");
fputs($fileopen, "$Email \n");
fclose($fileopen);
?>
There are two problems currently
Im not sure how to add all the fields to the line.
Every time I refresh the page to enter a new line into the text file it keeps overwriting the old one. So ive only ever got one line in the file.
Any help would be great.
Cheers
🙂 🙂