Hi,
I need a function that will divide text from mysql in 2 parts, so that I
can display first half in one column and second half in second column.
I can't find what function will do this job.
Here is part of what I have.
$myrow = mysql_fetch_ass oc($rsindexpage );
//function wordcount
$wc = str_word_count( $myrow);
$half = ($wc/2);
//function divide text in two columns
<tr>
<td width="150" valign="top">
<?php
$str = $myrow;
$split = NEED_FUNCTION_H ERE($str, $half);
$first = $split[0];
$second = $split[1];
echo "$first";
?>
</td>
<td width="150" valign="top">
<?php
echo "$second";
?>
</td>
</tr>
I need a function that will divide text from mysql in 2 parts, so that I
can display first half in one column and second half in second column.
I can't find what function will do this job.
Here is part of what I have.
$myrow = mysql_fetch_ass oc($rsindexpage );
//function wordcount
$wc = str_word_count( $myrow);
$half = ($wc/2);
//function divide text in two columns
<tr>
<td width="150" valign="top">
<?php
$str = $myrow;
$split = NEED_FUNCTION_H ERE($str, $half);
$first = $split[0];
$second = $split[1];
echo "$first";
?>
</td>
<td width="150" valign="top">
<?php
echo "$second";
?>
</td>
</tr>
Comment