MiniVend Akopia Services

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

Re: [mv] Accessing Database values from [perl]



Stefan Hornburg <racke@linuxia.net> writes:

> ******    message to minivend-users from Stefan Hornburg <racke@linuxia.net>     ******
> 
> Handytman@aol.com writes:
> 
> > ******    message to minivend-users from Handytman@aol.com     ******
> > 
> > I am attempting to use [perl] to check my shopping cart for items that are 
> > out of stock (checking the cart against the Inventory database.) The 
> > $Safe{items} is well explained. What I cannot find is how to chack an 
> > arbitrary database, key, field combination from Perl. I found, in the mailing 
> > list, something called database_field($database, $key, $field), but I cannot 
> > get this to work, and it isn't in the docs. Is it for real? Or is there 
> > another way?
> > 
> > Thank you very much,
> > Rob Maurer
> 
> You may try the function safe_tag. Somelike that may work:
> 
> $number = safe_tag ('data inventory count [item-code]');

After reading in the docs in an unrelated case, I think this will not work.
MiniVend has to initialize a database, that's the problem.

Bye
        Racke

-- 
LinuXia - Solutions of Cool Competence - Internetprogramming and more
D-30163 Hannover, Waldstraße 4, 0511-3941290 (http://www.linuxia.net/)
Wir realisieren Onlineshops mit Minivend (http://www.minivend.com)
und MiniMate (http://www.linuxia.net/minimate/).


Search for: Match: Format: Sort by: