Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Search help with Alphabetic Range

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


starsgps at gmail

Jul 21, 2013, 1:19 PM

Post #1 of 3 (36 views)
Permalink
Search help with Alphabetic Range

PLEASE Help!! I've been reading IC help pages for days and nothing I
try is working.

First of all, I sell over 22K products so creating a 'sitemap' which
includes all my items sorted alphabetically and those with a cwrpart
(MFG PM#) is not practical --takes too long to load/times-out-- but,
this code does work:

http://www.ultimatepassage.com/cgi-bin/up/scan/fi=products/st=db/sp=sitemap/co=1/sf=cwrpart/se=1/op=gt/nu=0/ml=25000/tf=description/to=x.html

(---And if I lower the ml=, the MORE-LIST out-put is totally screwed up!)

What I want to do is a listing of all products beginning with the
letters A to C or D to G, etc. which include a cwrpart (mfg pn#).

---I CAN get Just "A's" to work:
http://www.ultimatepassage.com/cgi-bin/up/scan/fi=products/st=db/co=1/sp=sitemap/sf=description/se=a/op=rm/nu=0/bs=1/su=1/sf=cwrpart/se=1/op=>/nu=1/bs=1/su=/ml=9999/tf=description/to=x

BUT HOW CAN I GET ONE PAGE TO SHOW "A, B, AND C" PRODUCTS?? (or d, f, g --etc)

---I tried a suggestion from Ed LaFrance
(fi=products/st=db/rg=description/rm=a/rx=c/bs=1/ml=1000/tf=description/to=x),
but it returns ALL items containing the letters a-b-c, and I've tried
to modify it several times over to no avail!!

Can someone please help? My programming skills are not that great so
I would truly appreciate specifics!!

Many Blessings,

Lisa

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


mike at perusion

Jul 21, 2013, 1:44 PM

Post #2 of 3 (33 views)
Permalink
Re: Search help with Alphabetic Range [In reply to]

Quoting L Collins (starsgps [at] gmail):
> PLEASE Help!! I've been reading IC help pages for days and nothing I
> try is working.
>
> First of all, I sell over 22K products so creating a 'sitemap' which
> includes all my items sorted alphabetically and those with a cwrpart
> (MFG PM#) is not practical --takes too long to load/times-out-- but,
> this code does work:
>
> http://www.ultimatepassage.com/cgi-bin/up/scan/fi=products/st=db/sp=sitemap/co=1/sf=cwrpart/se=1/op=gt/nu=0/ml=25000/tf=description/to=x.html
>
> (---And if I lower the ml=, the MORE-LIST out-put is totally screwed up!)
>
> What I want to do is a listing of all products beginning with the
> letters A to C or D to G, etc. which include a cwrpart (mfg pn#).
>
> ---I CAN get Just "A's" to work:
> http://www.ultimatepassage.com/cgi-bin/up/scan/fi=products/st=db/co=1/sp=sitemap/sf=description/se=a/op=rm/nu=0/bs=1/su=1/sf=cwrpart/se=1/op=>/nu=1/bs=1/su=/ml=9999/tf=description/to=x

I'd just use a page that has a query on it (this will work for MySQL):

[.query
list=1
sql="
SELECT * FROM products
WHERE description RLIKE '[-abc]%'
AND cwrpart = 1
"]
[sql-code] -- [sql-param description] -- [currency][sql-param price][/currency]<br>
[/query]

(The - keeps any [abc] tag from causing a problem.)

You could even use the same page for all with a CGI parameter and
appropriate filter:

[.query
list=1
sql="
SELECT * FROM products
WHERE description RLIKE '[[cgi name=letters filter=word]]%'
AND cwrpart = 1
"]
[sql-code] -- [sql-param description] -- [currency][sql-param price][/currency]<br>
[/query]

Then call the page with:

http://www.ultimatepassage.com/cgi-bin/up/alpha?letters=def

A competent IC consultant can set up all sorts of things for you if
you want to make it better -- most common effective thing to do is
make search terms show up in page names so that you show up more
readily on search engines.

Good luck!

--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.253.4194 <mike [at] perusion>

Find the grain of truth in criticism, chew it, and swallow
it. -- anonymous

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


starsgps at gmail

Jul 21, 2013, 6:57 PM

Post #3 of 3 (32 views)
Permalink
Search help with Alphabetic Range [In reply to]

> PLEASE Help!! I've been reading IC help pages for days and nothing I
> try is working.
>
> First of all, I sell over 22K products so creating a 'sitemap' which
> includes all my items sorted alphabetically and those with a cwrpart
> (MFG PM#) is not practical --takes too long to load/times-out-- but,
> this code does work:
>
> http://www.ultimatepassage.com/cgi-bin/up/scan/fi=products/st=db/sp=sitemap/co=1/sf=cwrpart/se=1/op=gt/nu=0/ml=25000/tf=description/to=x.html
>
> (---And if I lower the ml=, the MORE-LIST out-put is totally screwed up!)
>
> What I want to do is a listing of all products beginning with the
> letters A to C or D to G, etc. which include a cwrpart (mfg pn#).
>
> ---I CAN get Just "A's" to work:
> http://www.ultimatepassage.com/cgi-bin/up/scan/fi=products/st=db/co=1/sp=sitemap/sf=description/se=a/op=rm/nu=0/bs=1/su=1/sf=cwrpart/se=1/op=>/nu=1/bs=1/su=/ml=9999/tf=description/to=x

I'd just use a page that has a query on it (this will work for MySQL):

[.query
list=1
sql="
SELECT * FROM products
WHERE description RLIKE '[-abc]%'
AND cwrpart = 1
"]
[sql-code] -- [sql-param description] -- [currency][sql-param
price][/currency]<br>
[/query]

(The - keeps any [abc] tag from causing a problem.)

You could even use the same page for all with a CGI parameter and
appropriate filter:

[.query
list=1
sql="
SELECT * FROM products
WHERE description RLIKE '[[cgi name=letters filter=word]]%'
AND cwrpart = 1
"]
[sql-code] -- [sql-param description] -- [currency][sql-param
price][/currency]<br>
[/query]

Then call the page with:

http://www.ultimatepassage.com/cgi-bin/up/alpha?letters=def

A competent IC consultant can set up all sorts of things for you if
you want to make it better -- most common effective thing to do is
make search terms show up in page names so that you show up more
readily on search engines.

Good luck!

------------

Thanks, Mike!!

(Yes, I use mysql)

I'll work with your information (above) over the next few days and try
to figure out what you mean/how to make it work. Again, my
comprehension of programming is very limited!!

As can be seen from my "1990's-looking website", I'm lacking in LOTS
of skills, but I have eventually made things work by my own trial and
error. BTW, my ecommerce site will have been 'on-line' for 10-Years
this coming August 3rd, 2013! ...and I'm pretty happy about that even
though sales are crappy!

Are you available for paid, of course, advise? Frankly, I'd rather
pay for decent advise and then LEARN it on my own. ...I've found
learning how to do just 'One Thing' usually leads to an understanding
of many other things --which is worth more to Me and my brain! --I
hope that makes sense. --As for the html and the way my site looks, I
don't have the money to have a 'pro' do it, much less know who to
trust. ??

My contact info is on www.UltimatePassage.com.

Thank you, Mike, for your help!

Many Blessings to You!

Lisa

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.