Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Andrew Ballard
On Sat, Nov 17, 2012 at 4:13 PM, Sebastian Krebs wrote: > 2012/11/17 Andrew Ballard > >> On Nov 16, 2012 10:24 PM, "tamouse mailing lists" >> wrote: >> > >> > On Fri, Nov 16, 2012 at 12:41 PM, Sebastian Krebs >> wrote: >> > > Beside this it can be rewritten as >> > > >> > > switch ((int) (($cou

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Sebastian Krebs
2012/11/19 Tim Streater > On 18 Nov 2012 at 14:44, Jim Giner wrote: > > > 2. Using Switch {ALWAYS FIRST CASE!!!} > > > > //$boxes = 1; > > //switch ($count) { > > //case ($count > 14): > > //$boxes = 3; > > //

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Stuart Dallas
On 19 Nov 2012, at 19:35, Tim Streater wrote: > On 18 Nov 2012 at 14:44, Jim Giner wrote: > >> 2. Using Switch {ALWAYS FIRST CASE!!!} >> >> //$boxes = 1; >> //switch ($count) { >> //case ($count > 14): >> //$boxes = 3; >>

[PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Tim Streater
On 18 Nov 2012 at 14:44, Jim Giner wrote: > 2. Using Switch {ALWAYS FIRST CASE!!!} > > //$boxes = 1; > //switch ($count) { > //case ($count > 14): > //$boxes = 3; > //break; > //case ($count >

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Jim Giner
On 11/16/2012 8:33 PM, IƱigo Medina wrote: On Fri, 16 Nov 2012, Jim Giner wrote: On 11/16/2012 12:38 PM, Tim Streater wrote: On 16 Nov 2012 at 12:10, Omar Muhsin wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PH

Re: [PHP] globbed includes?

2012-11-19 Thread tamouse mailing lists
On Nov 18, 2012 3:03 PM, "Adam Richardson" wrote: > > On Sun, Nov 18, 2012 at 3:29 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > > There are certain times I'd like to include all files in a given > > directory (such as configuration stuff that is split out by type, a la > > apa

[PHP] Re: Variables with - in their name

2012-11-19 Thread Maciek Sokolewicz
On 19-11-2012 10:49, Alessandro Pellizzari wrote: Il Sun, 18 Nov 2012 01:09:11 -0500, Ron Piggott ha scritto: echo "\r\n"; It could be wrote: You MUST disable register_globals in your php.ini Once you have done that (and even before that...) you find your variable in $_POST['distributor-

[PHP] Re: Variables with - in their name

2012-11-19 Thread Alessandro Pellizzari
Il Sun, 18 Nov 2012 01:09:11 -0500, Ron Piggott ha scritto: > echo " $row['promo_code_suffix'] . "\" style=\"text-align: center;\">\r\n"; > It could be wrote: > > echo $distributor-42-2; You MUST disable register_globals in your php.ini Once you have done that (and even before that...) you f