[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Please Help: How to use minivend variable like [item-code] in a SQL search string?
****** message to minivend-users from cfm@maine.com ******
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> ****** message to minivend-users from "Tim Murphy" <goombah@netcom.ca> ******
Most of the questions that come through this list are
issues we deal with as a matter of course all the time.
But I can't help with many of them because we don't
generally use the vast bulk of the minivend tags. Instead
we use our own internal library integrated into Vend/lib.
We don't muck with the ordering process much, but we do
largely bypass the menagerie of tags, sorts and searches
in favor of a q`<ahem>simpler/rawer</ahem>` SQL-DBIish type interface.
It's pretty much just an extension of array_query().
We don't let users play with the code for their catalogs; they
have businesses to run and aren't interested in progamming.
We bypass %Safe as a matter of course; we make all sorts of
systems calls.
Who else is using minivend like that?
cfm
>
> Hi,
>
> I've been stumped by this since Day 1. Is there any way to get a Minivend
> variable to
> be interpolated inside a SQL string? To wit:
>
> <IMG SRC=[[sql param]select image from db where code = '[item-code]'[/sql]]>
>
> What I'm trying to do is pull the image filename out of a mySQL database for
> its
> associated item to use in a flypage. The above returns nada, and it seems
> that
> [item-code] never gets interpolated. If I remove the single quotes it causes
> the
> page to generate an Internal Server Error. Am I missing something, is there
> a
> better way to do it, or is this just not possible under Minivend 3.10?
>
> I'm really desperately stumped!
>
> Thanks in advance,
>
> Tim Murphy
>
>
> -
> 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 (MTRF 3-5pm) http://www.maine.com/
-
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