214-564-5316
Wednesday, May 21, 2008

Using mod to write out Table columns
Here is the basic code to take ALL of your database rows--divide them equally--and put them in "x" columns.
The Number of columns is determined by the line of code : if not i mod 3=0 then
where the numeral 3 means "three columns". This number can be changed.


Angel Aamos
Billy Bones
Cryme Ariver
Dewey Cheatham
Dottie Ditz
Geraldo Perez
Jane Doe
Jane Plain
Joe Blow
John Doe
Jon Blade
Kelly Kream
Marky Mark
Mary Smythe
Michael Green
Mike Mac
Mike Amos
Mollye May
Muddy Waters
Quincy Smith
Salamander Snape
Sally Amith
sam Blue
Sammy Spade
Samuel Clemens
Tim Tune
Tool Time
View the Code
copyCopy the Code