![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: putting database results in a 5x1 table
From: Marcin Dobrucki <Marcin.Dobrucki@TAKETHISAWAY.nokia.com>
Date: Tue Sep 27 2005 - 10:34:11 CEST
Eddie Biscomb wrote:
This will stretch the last column to fill the missing space.
<?php
function build(&$input, $cols = 5) {
$array_size = count($input);
for ($offset = 0; $offset < $array_size; $offset = $offset + $cols) {
$res =& build($sample_data);
You can also remove the lines that handle the "stretch", and just add
/m
|