Re: [PHP] Table formation...

2006-04-18 Thread tedd
that said how often do you _really_ need a 1 or a 0, Surprisingly enough, I need it quite often. Enough so that I keep an example nearby. I'm assuming that the 1 or 0 are used to detemine an on/off state. is my assumption correct? Mostly even/odd, this/that, right/left, on/off, up/down, se

Re: [PHP] Table formation...

2006-04-17 Thread Richard Lynch
On Mon, April 17, 2006 7:14 pm, Jochem Maas wrote: > tedd wrote: >> Hey: >> >> Didn't anyone like my -- >> >> "Whenever I need a 1 or 0, I use ($i & 1)." >> >> -- comment? >> >> I though that was pretty clever, but no one even said "How's your >> Mum?". I don't like it for 2-column display or alte

Re: [PHP] Table formation...

2006-04-17 Thread Jochem Maas
How's your Mum? tedd wrote: Hey: Didn't anyone like my -- "Whenever I need a 1 or 0, I use ($i & 1)." -- comment? I though that was pretty clever, but no one even said "How's your Mum?". well it's a basic bitwise operation, anyone who has been doing for a while wouldn't think much of it an

Re: [PHP] Table formation...

2006-04-17 Thread Jochem Maas
tedd wrote: Jochem: ... Thanks. tedd PS: You're getting two copies of this Jochem because I can't figure out which not to send. :-) I get double copies of most replies to stuff I've written on this list, it doesn't bother me at all - the only annoyance is the ID10Ts that have been her

Re: [PHP] Table formation...

2006-04-17 Thread tedd
Hey: Didn't anyone like my -- "Whenever I need a 1 or 0, I use ($i & 1)." -- comment? I though that was pretty clever, but no one even said "How's your Mum?". tedd -- http://sperling.com -- PHP General Mailing

Re: [PHP] Table formation...

2006-04-17 Thread tedd
Jochem: Hell, I have enough problems trying to remember to remove your email address when I reply to all. :-) I thought the 'rule' around here was do a 'reply to all' - someone put me right if I've been an idiot all this time! Nooo, I wouldn't use the term... idiot. :-) What I typically do

Re: [PHP] Table formation...

2006-04-17 Thread Ray Hauge
On Monday 17 April 2006 14:04, Jochem Maas wrote: > I thought the 'rule' around here was do a 'reply to all' - someone > put me right if I've been an idiot all this time! I use Kmail, and it has a feature to just reply to the mailing list, so I generally use that. Reply to all is definitely easi

Re: [PHP] Table formation...

2006-04-17 Thread Jochem Maas
.. Jochem: Oh, I wasn't defending Jay -- I didn't even know anything was in dispute. I'm clueless as usual -- just putting in my $0.02 as I can. I'm luckyh if I have .01 to throw around ;-) Hell, I have enough problems trying to remember to remove your email address when I reply to all.

Re: [PHP] Table formation...

2006-04-17 Thread tedd
but tedd there is no need to go defending Jay. I was merely chatting with him on a theoretical level, not telling nwhat he should/must be doing (because a, he's been doing this stuff longer than I have been alive ;-) and b, I know that he knows the difference between doing it 'right' and doing i

Re: [PHP] Table formation...

2006-04-17 Thread Jochem Maas
tedd wrote: Jay said: ... Yep, nothing wrong with using tables to show column data -- that's what tables are for. that's my point - columns have nothing to do with the data structure, it's a presentation issue - technically it's a list of products. ergo: UL iso TABLE. personally I think

RE: [PHP] Table formation...

2006-04-17 Thread tedd
Jay said: With a simple loop I can create the data in columns in a table. It is a table of products, each product's features, etc. I am not too worried about the client changing the layout at a later date as that would likely be driven by me...maybe. :) The code which makes the multiple columns

RE: [PHP] Table formation...

2006-04-17 Thread Jay Blanchard
[snip] time limits always dictate the 'get it working' solution, that said Paul's suggestion is rather better than using a table for a couple of reasons (imho): 1. it saves you having to pre-order/split/etc the original data so that you can then loop them/it in order to dump out a table. 2. it me

Re: [PHP] Table formation...

2006-04-17 Thread Jochem Maas
Jay Blanchard wrote: [snip] Pardon my asking on the eve of your launch, but is a table the most sensible markup for this data? It looks to me like a one-dimensional list that just happens to be presented two to a row. If so, I'd use an unordered list, float each item left, and limit the lis

RE: [PHP] Table formation...

2006-04-16 Thread Jay Blanchard
[snip] Pardon my asking on the eve of your launch, but is a table the most sensible markup for this data? It looks to me like a one-dimensional list that just happens to be presented two to a row. If so, I'd use an unordered list, float each item left, and limit the list width to two item widt

Re: [PHP] Table formation...

2006-04-16 Thread Paul Novitski
At 05:19 PM 4/16/2006, Jay Blanchard wrote: I have a table of data and I want to display items by two's, i.e. Item 1 Item 2 Item 3 Item 4 Item 5 Pardon my asking on the eve of your launch, but is a table the most sensible markup for this data? It looks to me like a one-dimensional

RE: [PHP] Table formation...

2006-04-16 Thread Jay Blanchard
[snip] Something like this? $c = 0; while($c < $itemcount) { if ($c % 2 == 0) $c++; } [/snip] Yep! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Table formation...

2006-04-16 Thread chris smith
On 4/17/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > I know that this is simple, and again I am operating on little rest in > the quest to get a site launch by sometime tomorrow evening. > > I have a table of data and I want to display items by two's, i.e. > > Item 1 Item 2 > Item 3 Item