i wrote a function do write a file for me on info taken from a db, and wrote
a script with a for loop going through every row in the db, and calling the
function. so the function is called about 200 times. but i'm getting weird
results, the files are corrupted. its grand when i just go one at a time. so
i'm assuming variable values must have been left set from the las for loop.
so how do i clear ALL variables in the function??

What do you mean by "corrupted"? It should be simple;

Open the file
  while file open
    read a record from the database into the file
  when no more records
close file

Maybe you need to place a proper newline character at the end of each record
or something like that. Can we have some more information to go on?



* Texas PHP Developers Conf  Spring 2003                  *
* T Bar M Resort & Conference Center                      *
* New Braunfels, Texas                                    *
* San Antonio Area PHP Developers Group                   *
* Interested? Contact [EMAIL PROTECTED] *

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to