[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Randomly pick a product
Thanks very much, Christopher. That looks interesting, but I guess what I'm
wondering is, How do I extract a record (key, or item-code) from products.asc
**at random**? Because once I have that, the page will do the rest (display
the appropriate image, descriptions, order-link, etc.)
Thanks,
Rob
In a message dated 10/23/99 11:12:12 AM Eastern Daylight Time, cfm@maine.com
writes:
> ****** message to minivend-users from "Mr. Christopher F. Miller" <cfm@
> maine.com> ******
>
>
> In some cases we do it on a per page request basis but generally
> use cached files instead.
>
> So you could do:
>
> [file name=adfadf] # I forget, is it [file or [include? See manual
>
> and generate the contents of "adfadf" by another process perhaps on
> cron or triggered otherwise.
>
> On Windows you might rebuild "adfadf" at reboot. ;^>
>
> cfm
>
>
> On Sat, Oct 23, 1999 at 08:34:27AM -0400, Handytman@aol.com wrote:
> > ****** message to minivend-users from Handytman@aol.com ******
> >
> > I need to pick a product, at random, from an ever-changing
'products.asc,'
>
> > for display on the initial catalog page. Therefore, using the random
tags
> > seems inappropriate. Counting through all the items in 'products.asc'
> seems
> > too time-consuming for the server. Has anybody accomplished this? Care
to
> > pass on some perls of wisdom?
> >
> > Much appreciated,
> > Rob Maurer
> > -
> > 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
>
> --
>
> Christopher F. Miller, Publisher cfm@maine.com
> MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
> 1.207.657.5078 http://www.maine.com/
> Database publishing, e-commerce, office/internet integration, Debian linux.
> -