Re: What's wrong with this replace?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43696
interpreted = N
texte = Yes, I've found where now... there was a page which looped, and after the last is a redirect which had no [cart] value in the redirect! On Monday, 23 September 2002 12:23 PM, Tim Robinson wrote: >Everything seems to be in the right place.... > >(replace >db=temp/responses.db&eqSKUdata=3241772378853)Q4_1=Appetising%20Snacks%20%26%20Starters&Q4_2=Heart-Warming%20Soups&Q4_3=Home%20style%20Pasta&Q4_4=New-Fashioned%20Breads&Q4_5=Favourite%20Biscuits(/replace) > >Regards, >Tim > >On Monday, 23 September 2002 12:18 PM, Alain Russell > wrote: >>Try and take the brackets off the outside of the [replace] and see what gets >>displayed .. >> >>Instead of [replace....]......[/replace] do this >>replace....]......[/replace >> >>Thatıs how I always debug my replaces when they don't work. >> >>Make sure the correct values are everywhere. >>Alain >> >> >>> Hi there, >>> >>> For some reason, the replace below is not replacing... as far as I can tell, >>> the code is pretty straightforward. The search finds 5 records, then gives >>> each of them a variable name _Q4_[index] which matches the fieldnames of the >>> other database. It definitely creates the variables, as they display. But it >>> doesn't write them to the DB.... >>> >>> [search >>> db=temp/select_[cart].db&grSUBJECT_VALUEdata=0&SUBJECT_VALUEsort=1&SUBJECT_VAL >>> UEsdir=as] >>> [founditems] >>> [TEXT show=f]_Q4_[index]=[SUBJECT_NAME][/TEXT]
>>> [/founditems] >>> [/search] >>> >>> [replace >>> db=temp/responses.db&eqSKUdata=[cart]]Q4_1=[url][_Q4_1][/url]&Q4_2=[url][_Q4_2 >>> ][/url]&Q4_3=[url][_Q4_3][/url]&Q4_4=[url][_Q4_4][/url]&Q4_5=[url][_Q4_5][/url >>> ][/replace] >>> [COMMITDATABASE db=temp/responses.db] >>> >>> [_Q4_1]
>>> [_Q4_2]
>>> [_Q4_3]
>>> [_Q4_4]
>>> [_Q4_5]
>>> >>> All help greatly appreciated. >>> >>> Regards, >>> Tim >>> >>> >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >>> >>> Web Archive of this list is at: http://search.smithmicro.com/ >> >> >>------------------------------------------------------------- >>This message is sent to you because you are subscribed to >> the mailing list . >>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/ >> > > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://search.smithmicro.com/ >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: What's wrong with this replace? (Tim Robinson 2002)
  2. Re: What's wrong with this replace? (Tim Robinson 2002)
  3. Re: What's wrong with this replace? (Alain Russell 2002)
  4. Re: What's wrong with this replace? (Tim Robinson 2002)
  5. Re: What's wrong with this replace? (Alain Russell 2002)
  6. What's wrong with this replace? (Tim Robinson 2002)
Yes, I've found where now... there was a page which looped, and after the last is a redirect which had no [cart] value in the redirect! On Monday, 23 September 2002 12:23 PM, Tim Robinson wrote: >Everything seems to be in the right place.... > >(replace >db=temp/responses.db&eqSKUdata=3241772378853)Q4_1=Appetising%20Snacks%20%26%20Starters&Q4_2=Heart-Warming%20Soups&Q4_3=Home%20style%20Pasta&Q4_4=New-Fashioned%20Breads&Q4_5=Favourite%20Biscuits(/replace) > >Regards, >Tim > >On Monday, 23 September 2002 12:18 PM, Alain Russell > wrote: >>Try and take the brackets off the outside of the [replace] and see what gets >>displayed .. >> >>Instead of [replace....]......[/replace] do this >>replace....]......[/replace >> >>Thatıs how I always debug my replaces when they don't work. >> >>Make sure the correct values are everywhere. >>Alain >> >> >>> Hi there, >>> >>> For some reason, the replace below is not replacing... as far as I can tell, >>> the code is pretty straightforward. The search finds 5 records, then gives >>> each of them a variable name _Q4_[index] which matches the fieldnames of the >>> other database. It definitely creates the variables, as they display. But it >>> doesn't write them to the DB.... >>> >>> [search >>> db=temp/select_[cart].db&grSUBJECT_VALUEdata=0&SUBJECT_VALUEsort=1&SUBJECT_VAL >>> UEsdir=as] >>> [founditems] >>> [TEXT show=f]_Q4_[index]=[SUBJECT_NAME][/TEXT]
>>> [/founditems] >>> [/search] >>> >>> [replace >>> db=temp/responses.db&eqSKUdata=[cart]]Q4_1=[url][_Q4_1][/url]&Q4_2=[url][_Q4_2 >>> ][/url]&Q4_3=[url][_Q4_3][/url]&Q4_4=[url][_Q4_4][/url]&Q4_5=[url][_Q4_5][/url >>> ][/replace] >>> [COMMITDATABASE db=temp/responses.db] >>> >>> [_Q4_1]
>>> [_Q4_2]
>>> [_Q4_3]
>>> [_Q4_4]
>>> [_Q4_5]
>>> >>> All help greatly appreciated. >>> >>> Regards, >>> Tim >>> >>> >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >>> >>> Web Archive of this list is at: http://search.smithmicro.com/ >> >> >>------------------------------------------------------------- >>This message is sent to you because you are subscribed to >> the mailing list . >>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/ >> > > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://search.smithmicro.com/ >------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Tim Robinson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

pdf files? (2001) Is [thisurl] http or https? (1998) synching databases on multiple servers (1997) Fwd: Problems with Webcatalog Plug-in (1997) Hiding Email Addresses (2003) Search logic? (1998) MacWEEK article help needed (1996) WebCat2 beta 11 - new prefs ... (1997) WCS Newbie question (1997) Removing and Reinstalling Typhoon (2000) Can I do this with [grep]? (2002) Forms Search Questions (1997) $Quit, $CloseDatabase corrections (1997) Multiple prices (1997) Password and Allow commands (1998) foreign languages, email, webcat (1998) [WebDNA] preventing hackers from posting their own (altered) (2009) [format 40s]text[/format] doesn't work (1997) Large databases in WebCat (1997) [date] tag not working on mac 4.0.1 (2000)