Hehe your email came through like 3 seconds after I sent mine... I fear I may have been too zealous with the reply button lol
I would say that the quote style *shouldn't* affect the scripts comparison operation... PHP automatically typecasts its vars to be the same type depending on the comparison, so matching a string against an integer is perfectly legal (even if the string has textual content, although the outcome may be unexpected) Having said this, trying different permutations is never a bad idea :) Cheers Dan -- -----Original Message----- From: Portman [mailto:[EMAIL PROTECTED] Sent: 09 January 2006 17:00 To: [email protected] Subject: Re: [wdvltalk] location: wits end Thanks Dan. I realized that after I fired off my first e-mail . . . but I notice that Steve has "1" in his code instead of '1' - could that be something? Dan Parry wrote: >At the end of a case declaration in PHP the colon (:) is required... the >structure should look like this: > >Switch ($myVar) >{ > case '1': > [...]; > break; > case '2': > [...] // if a break; isn't inserted the code in the next >branch will be executed also > Case '3': > [...]; > break; > default: > [...]; // when no case is matched default is called >} // end switch > >Hope this helps > >Dan > ____ . The WDVL Discussion List from WDVL.COM . ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. __________ NOD32 1.1356 (20060108) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com ____ The WDVL Discussion List from WDVL.COM ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
