Re: Anoying problem with multi $var combinations Pse help..
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Anoying problem with multi $var combinations Pse help..

From: Shelly <sheldonlg.news@asap-consult.com>
Date: Sat Jul 16 2005 - 01:28:16 CEST

"Peter Butler" <peterbutler@iafrica.com> wrote in message
news:rbidnYj81aaV3kXfRVn-rA@is.co.za...
>
> Shelly <sheldonlg.news@asap-consult.com> wrote in message
> news:CImdnVmIcLIbokXfRVn-jA@comcast.com...
>
>> switch ($target) {
>> case 1: stuff
>> break;
>> case 2:
>> }
>
>
> ja... I know BUT I'll still have a zillion unique combinations of:
>
> 14things x 14things x 14things x 14things x 14things x 14things x 14things
> x
> 14things x 14things x 14things x 14things x 14things x 14things x 14things
>
> that's a lot of redundant
>
> 'case "x": stuff_a
>
>
>
>
> ... unless that one single combination of 14 different $vars is set in
> that
> particular way
>

See my last suggestion of simply building the query dynamically. Much
shorter and much better.

Shelly
Received on Mon Oct 17 21:08:24 2005