I am feeding a string called $story from a database into an html page with three table datas such as this:
<table width = "600">
<tr>
<td width = "130">left side</td>
<td width = "5">spacer</td>
<td width = "465"><?PHP print $story; ?> </td>
</tr>
</table>
I want the left side <td> to add a bunch of this html: <P>
to push down the left side.
If you visit
http://travelbackpacker.com/demo/join.php3
(the site is is still under construction), you will see
that I have a rounded graphic at the bottom of the left td
and I want to push that all down using an appropriate number of
these:
<p>
Is there a to get the length of the page?
I have tried strlen, but that does'nt account for spaces, and line breaks
that are different for each $story variable.
I've tried something like this
$str_length = strlen($story)
$str_length = $str_length / 250;
for($i=1; $i<=$str_length; $i++)
{
print "<P> ";
}
Any ideas?