Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] dissapearing data if repeated codes are used; how can i call the data?



******    message to minivend-users from "Christian J. =?iso-8859-1?Q?M=FCller?=" <cmueller@polinet.ch>     ******

You could run your file through a perl program that adds a first column
that auto-increments.
Something like:
$i = 0;
open(IN, analog.file)
open(OUT, new.file)
print OUT all\tfiled\tnames
while $line = <IN> {
$out = $i."\t".$line;
$i++
print OUT $out;
}
close(IN)
close(OUT)

This code will not work! However, it shows the principle.
Chris

Michael Schwartz wrote:
> 
> ******    message to minivend-users from "Michael Schwartz" <michael@panamacom.com>     ******
> 
> Hi all!
> 
> I've asked this 2 times without success, so i guess it is a stupid
> question....but i cant find the answer...so here it goes again, hoping that
> someone answers:
> 
> i have a table pretty much like this:
> 
> code                title
> x                       USA
> x                       CR
> x                       BR
> 
> It is the output of Analog, a web statistics program.   Minivend (it seems),
> doesnt like items with the same code....it doesnt show them.....If i
> eliminate the header 'code', the results appear, but not what i want to
> appear.
> If i manually change the codes so they are different, it works perfectly,
> but I want it to be an automated process....Crontabs runs analog, it creates
> the output at 12midnight, and the site using minivend should read it.
> Now, the question:
> 
> How can i access records in the database if they have the same code? is this
> possible? am i missing something here??
> 
> Thanks for your input.
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: