Re: [WebDNA] Array for Dummies [solved]

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104598
interpreted = N
texte = I for one would be very interested to see a "clean" file of this. -Dan Strong http://www.DanStrong.com On 1/26/2010 2:36 PM, Lawrence wrote: > Thanks again, this 2 links gave me the clue of what was the missing=20 > information PHP was giving back. > If it does interest, I can make a clean file with explanation for the=20 > group. > There is no level limit, I found this quiet usefull > > Lawrence > > Le 26/01/10 16:20, Toby Cox a =E9crit : >> in fact, it would probably help you to see what the php script is=20 >> actually writing >> >> forget the array issue >> >> >> when you select country number 3 you get... >> http://www.codeassembly.com/examples/jquerycombo/combobox.php?_name=3D= country&_value=3D3=20 >> >> >> and when you choose a state, you get >> http://www.codeassembly.com/examples/jquerycombo/combobox.php?_name=3D= state&_value=3D2=20 >> >> >> >> >> >> This is what you have to return to the jquery script, so I think what=20 >> I wrote before in response to "[WebDNA] PHP Array translated to=20 >> Webdna" still holds >> >> >> TC >> >> >> >> On 26 Jan 2010, at 15:13, christophe.billiottet@webdna.us wrote: >> >>> Hi Lawrence! i suppose you already read the WebDNA references at=20 >>> http://www.webdna.us/page.dna?numero=3D84 >>> >>> - chris >>> >>> >>> >>> >>> On Jan 26, 2010, at 7:28, Lawrence Banahan wrote: >>> >>>> Hi, >>>> >>>> Can't any body help me with this... >>>> >>>> Is Array in PHP like Array in Webdna? >>>> >>>> Thanks in advance >>>> >>>> Lawrence >>>> >>>> >>>> >>>> D=E9but du message r=E9exp=E9di=E9 : >>>> >>>>> De : Lawrence >>>>> Date : 21 janvier 2010 09:50:30 HNEC >>>>> =C0 : talk@webdna.us >>>>> Objet : [WebDNA] Array for Dummies >>>>> R=E9pondre =E0 : >>>>> >>>>> Hi, >>>>> >>>>> I have never used [ArraySet] and [ArrayGet], I'm trying to=20 >>>>> understand it but it is a litlle obscure to me... >>>>> I have found a JQuery script that would save me a lot of=20 >>>>> time,(http://www.codeassembly.com/Simple-chained-combobox-plugin-fo= r-jQuery/)=20 >>>>> but it is linked to a PHP file. >>>>> I'm trying to create my own TPL file. >>>>> If there is a PHP Guru who could help me understand how to convert=20 >>>>> the following code to some nice Webdna... >>>>> I have started with something looking like that : >>>>> [search db=3D../admin/clubs.db&neLIGUEdata=3DFINDALL®IONsumm=3Dt= ] >>>>> [arrayset name=3Dregion&dim=3D2,[numfound]] >>>>> [founditems]([SKU])=3D[region] >>>>> [/founditems][/arrayset] >>>>> [/search] >>>>> >>>>> >>>>> Thanks in advance >>>>> Lawrence >>>>> >>>> $array =3D array(); >>>>> if ($_GET['_name'] =3D=3D 'country') >>>>> { >>>>> if ( $_GET['_value'] =3D=3D 3 )//usa >>>>> { >>>>> $array[] =3D array('1' =3D> 'Montana'); >>>>> $array[] =3D array('2' =3D> 'New York'); >>>>> $array[] =3D array('3' =3D> 'Texas'); >>>>> } else >>>>> { >>>>> $array[] =3D array('0' =3D> 'No state'); >>>>> } >>>>> } elseif ($_GET['_name'] =3D=3D 'state') >>>>> { >>>>> if ( $_GET['_value'] =3D=3D 2 )//New York >>>>> { >>>>> $array[] =3D array('1' =3D> 'New York'); >>>>> $array[] =3D array('2' =3D> 'Another city'); >>>>> } else >>>>> { >>>>> $array[] =3D array('0' =3D> 'No city'); >>>>> } >>>>> } else >>>>> { >>>>> $array[] =3D array('1' =3D> 'Data 1'); >>>>> $array[] =3D array('2' =3D> 'Data 2'); >>>>> $array[] =3D array('3' =3D> 'Data 3'); >>>>> } >>>>> echo json_encode( $array ); >>>>> ?> >>>>> >>>> >>> >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> Bug Reporting:=20 >>> http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> Bug Reporting:=20 >> http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 >> > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting:=20 > http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Array for Dummies [solved] (Govinda 2010)
  2. Re: [WebDNA] Array for Dummies [solved] (Dan Strong 2010)
  3. Re: [WebDNA] Array for Dummies [solved] (Lawrence 2010)
I for one would be very interested to see a "clean" file of this. -Dan Strong http://www.DanStrong.com On 1/26/2010 2:36 PM, Lawrence wrote: > Thanks again, this 2 links gave me the clue of what was the missing=20 > information PHP was giving back. > If it does interest, I can make a clean file with explanation for the=20 > group. > There is no level limit, I found this quiet usefull > > Lawrence > > Le 26/01/10 16:20, Toby Cox a =E9crit : >> in fact, it would probably help you to see what the php script is=20 >> actually writing >> >> forget the array issue >> >> >> when you select country number 3 you get... >> http://www.codeassembly.com/examples/jquerycombo/combobox.php?_name=3D= country&_value=3D3=20 >> >> >> and when you choose a state, you get >> http://www.codeassembly.com/examples/jquerycombo/combobox.php?_name=3D= state&_value=3D2=20 >> >> >> >> >> >> This is what you have to return to the jquery script, so I think what=20 >> I wrote before in response to "[WebDNA] PHP Array translated to=20 >> Webdna" still holds >> >> >> TC >> >> >> >> On 26 Jan 2010, at 15:13, christophe.billiottet@webdna.us wrote: >> >>> Hi Lawrence! i suppose you already read the WebDNA references at=20 >>> http://www.webdna.us/page.dna?numero=3D84 >>> >>> - chris >>> >>> >>> >>> >>> On Jan 26, 2010, at 7:28, Lawrence Banahan wrote: >>> >>>> Hi, >>>> >>>> Can't any body help me with this... >>>> >>>> Is Array in PHP like Array in Webdna? >>>> >>>> Thanks in advance >>>> >>>> Lawrence >>>> >>>> >>>> >>>> D=E9but du message r=E9exp=E9di=E9 : >>>> >>>>> De : Lawrence >>>>> Date : 21 janvier 2010 09:50:30 HNEC >>>>> =C0 : talk@webdna.us >>>>> Objet : [WebDNA] Array for Dummies >>>>> R=E9pondre =E0 : >>>>> >>>>> Hi, >>>>> >>>>> I have never used [ArraySet] and [ArrayGet], I'm trying to=20 >>>>> understand it but it is a litlle obscure to me... >>>>> I have found a JQuery script that would save me a lot of=20 >>>>> time,(http://www.codeassembly.com/Simple-chained-combobox-plugin-fo= r-jQuery/)=20 >>>>> but it is linked to a PHP file. >>>>> I'm trying to create my own TPL file. >>>>> If there is a PHP Guru who could help me understand how to convert=20 >>>>> the following code to some nice Webdna... >>>>> I have started with something looking like that : >>>>> [search db=3D../admin/clubs.db&neLIGUEdata=3DFINDALL®IONsumm=3Dt= ] >>>>> [arrayset name=3Dregion&dim=3D2,[numfound]] >>>>> [founditems]([SKU])=3D[region] >>>>> [/founditems][/arrayset] >>>>> [/search] >>>>> >>>>> >>>>> Thanks in advance >>>>> Lawrence >>>>> >>>> $array =3D array(); >>>>> if ($_GET['_name'] =3D=3D 'country') >>>>> { >>>>> if ( $_GET['_value'] =3D=3D 3 )//usa >>>>> { >>>>> $array[] =3D array('1' =3D> 'Montana'); >>>>> $array[] =3D array('2' =3D> 'New York'); >>>>> $array[] =3D array('3' =3D> 'Texas'); >>>>> } else >>>>> { >>>>> $array[] =3D array('0' =3D> 'No state'); >>>>> } >>>>> } elseif ($_GET['_name'] =3D=3D 'state') >>>>> { >>>>> if ( $_GET['_value'] =3D=3D 2 )//New York >>>>> { >>>>> $array[] =3D array('1' =3D> 'New York'); >>>>> $array[] =3D array('2' =3D> 'Another city'); >>>>> } else >>>>> { >>>>> $array[] =3D array('0' =3D> 'No city'); >>>>> } >>>>> } else >>>>> { >>>>> $array[] =3D array('1' =3D> 'Data 1'); >>>>> $array[] =3D array('2' =3D> 'Data 2'); >>>>> $array[] =3D array('3' =3D> 'Data 3'); >>>>> } >>>>> echo json_encode( $array ); >>>>> ?> >>>>> >>>> >>> >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> Bug Reporting:=20 >>> http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >> Bug Reporting:=20 >> http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 >> > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting:=20 > http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 Dan Strong

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:

Date Time Oddness (1999) [WebDNA] Quick test (2008) TCP Connect (2000) [taxrate] question (1997) [WebDNA] naming math vars in v.7 (2010) WebCatalog/WebDNA Hosting? (2006) Design Help Needed (1998) Emailer problem with WC 2.1, NT, WebSite 2.1 (1998) WebCat editing, SiteGuard & SiteEdit (1997) WebCat virtual postcard is done! Thanks for the help! (1998) authorizenet (2001) [NT] ie 4.0 required (1997) [format 40s]text[/format] doesn't work (1997) Why are some admin pages not encrypted? (2000) Mac Scheduling (1998) To Err or Not Custom Error (1999) Another [redirect] question (2003) Error 11 (1996) won't serve .tpl (2000) Help please (2004)