I am trying to create a flat file when someone adds to or madifies the db, using the following:
sub file {
open(FILE, ">>$db_script_path/msaccess.txt") | | die "I can't $!\n";
print FILE "\"$rec{'ID'}\",\"$rec{'Title'}\",\"$rec{'URL'}\"\n";
close(FILE);
}
Unfortunately, this isn't working. I tried putting it in db.cgi and the html.pl, but it doesn't work. It doesn't give an error either, so I guess the syntax is correct. Can anyone help?
Thanks. By the way. DBMan ir really great andd the support here is terrific.
--wm
sub file {
open(FILE, ">>$db_script_path/msaccess.txt") | | die "I can't $!\n";
print FILE "\"$rec{'ID'}\",\"$rec{'Title'}\",\"$rec{'URL'}\"\n";
close(FILE);
}
Unfortunately, this isn't working. I tried putting it in db.cgi and the html.pl, but it doesn't work. It doesn't give an error either, so I guess the syntax is correct. Can anyone help?
Thanks. By the way. DBMan ir really great andd the support here is terrific.
--wm