A simple addition of a couple of records to a database file?
$newfile = "newfile.db"; .
open(TXT, ">>/home/cgi-bin/db/$newfile") #
print TXT "$in{'ID'}|$in{'DD'}|$in{'date'}|$in{'pname'}\n" ;
close (TXT) ;
The problem is I want to avoid duplicate entries for the fields 'pname' and 'date'.
Any solutions?
Thanks,
Zeshan.
$newfile = "newfile.db"; .
open(TXT, ">>/home/cgi-bin/db/$newfile") #
print TXT "$in{'ID'}|$in{'DD'}|$in{'date'}|$in{'pname'}\n" ;
close (TXT) ;
The problem is I want to avoid duplicate entries for the fields 'pname' and 'date'.
Any solutions?
Thanks,
Zeshan.