i was lucky enough to find this code buried here in the forum, but i had to make a couple changes to make it execute...
the only problem now is that it splits the contents of "text" exactly in half. i have 27 words and it splits things up 13 and 13 and then drops a word in between.
any ideas how i might solve this? i'm not show how i would adjust sizeof or half or array_slice to do this properly without losing words...
???????????
$result = mysql_query("SELECT text FROM temp WHERE tempid='1' ");
$row = mysql_fetch_array($result);
$split = $row["text"];
$pieces = explode (" ", $split);
$g = sizeof($pieces);
$half = $g / 2;
$part1 = array_slice($pieces, 0, $half);
$part2 = array_slice($pieces, $half+1);
$col1 = implode(' ', $part1);
$col2 = implode(' ', $part2);
?>