PROTECTED]
Subject: Re: [PHP-DB] Two-column display of data, second method
Nice job. There's a fair bit of room for optimization, but
unless your data
sets are very large, it's probably not necessary. However,
if you're compulsive
(as I tend to be), you'll optimize every bit of code
: Friday, 20 June, 2003 10:39
Subject: RE: [PHP-DB] Two-column display of data, second method
You could always use the % operand
snip
$cols_wanted = 2;
if(($faculty_found % $cols_wanted) == 0) {
// Then do a TR
echo 'tr';
} else {
// Then it's the first column, and don't end the row
}
/snip
When I went looking for a script that would give me a two-column layout that
would list my faculty members in two roughly equal columns, alphabetized
down the first column and then the second, I did not find such a script.
[There was indeed a two-column script, but it fed the data row-by-row.]
I