I am having difficulties getting some data from a database to a file text. Can anyone check if my code is right?
p.s. I know you will ask why take from database to txt file. I have to clean every week the db but I don't want to lose the info, so, I keep it on a txt file.
---------------
$printFileName = $plainfiledate;
$printFileHandle = fopen($printFileName, 'a') or die("can't open file");
fwrite($printFileHandle,$line['PersonalID'],$line['GroupName'],$line['SlipNum'],$line['DrawNum'],$line['Num1'],$line['Num2'],$line['Num3'],$line['Num4'],$line['Num5'],$line['Num6'],$line['Num7']);
fclose($printFileHandle);
Edit:
Warning: Wrong parameter count for fwrite() in /home/anilson1/public_html/VOGLogs/proccessingMANAGER.php on line 63
above is the messega that I get
p.s. I know you will ask why take from database to txt file. I have to clean every week the db but I don't want to lose the info, so, I keep it on a txt file.
---------------
$printFileName = $plainfiledate;
$printFileHandle = fopen($printFileName, 'a') or die("can't open file");
fwrite($printFileHandle,$line['PersonalID'],$line['GroupName'],$line['SlipNum'],$line['DrawNum'],$line['Num1'],$line['Num2'],$line['Num3'],$line['Num4'],$line['Num5'],$line['Num6'],$line['Num7']);
fclose($printFileHandle);
Edit:
Warning: Wrong parameter count for fwrite() in /home/anilson1/public_html/VOGLogs/proccessingMANAGER.php on line 63
above is the messega that I get
Last edited: