[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Row not found error in embedded perl.
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Chris Rapier (rapier@psc.edu):
> ****** message to minivend-users from Chris Rapier <rapier@psc.edu> ******
>
> I'm using some embedded perl to snag information out of a database so I
> can build clickbars dynamically.
>
> For the most part this works fine but if $rowname doesn't actually exist
> I get the following error:
>
> 128.182.61.60 GBc4HGg7:128.182.61.60 - [27/June/2000:12:10:10 -0400]
> windfallfoods
> /cgi-bin/windfallfoods/scan/un=yes/sf=code/se="organic"/va=category_name=Organic
> Foods/tf=description,brand/ml=5.html Safe: There is no row with index
> 'organic' at /usr/home/rapier/mvend/lib/Vend/Table/Common.pm line 243.
> >
> >
> > my $ref = $Db{'catopts'};
> > my $vendurl = $Config->{'VendURL'};
> > my $colname="subcats";
> > my $build_html = "";
> > my $rowname = Values->{'mv_searchspec'}[0];
> > my $searches = $ref->field($rowname, $colname);
my @subcats = grep $ref->record_exists($_) split /\,/, $searches;
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>
Friends don't let friends use Outlook. -- Bob Blaylock
-
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