|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-02-25 04:40 UTC] Rene dot Matthaeus at comware dot de
When I create/open a File to write, only could be written in the File when there is one Byte in the File.
Can you Help me ?
while ($row = mysql_fetch_row($result)) {
$fname="export.dat";
if ($fp = fopen($fname, "a+")) {
for ($i=0;$i<=13;$i++) {
$data[$i]=("$row[$i],");
fputs($fp,$data[$i]);
}
fclose($fp);
}
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 12:00:01 2025 UTC |
On what line? Is it the extra koma in $data[$i]=("$row[$i],"); why don't you write it $data[$i] = $row[$i]; or fputs ($fp, $row[$i]); -Egon