Haha, what an idiot, right, one step further now, but still an error.
code: Parse error: syntax error, unexpected $end in /home/wakeupb/public_html/blog/indextest1.php on line 76
Line 76 being the last line of the code
HTML code: </html>
So the last bit is...
PHP code: echo("
</div>
<div class='blog-title'>
<table width='100%' border='0' cellpadding='0'>
<tr>
<td>$title</td>
<td align='right'>$date @ $ip_address</td>
</tr>
</table></div>
<div class='blog-body'>
");
if (strlen($news_brief) < 300)
{
// less than 300 chars, so not cut off in middle of word; show full thing.
echo $news_brief;
}
else
{
// 300 or more characters, so remove any part-words from end of string by having it end in whitespace.
preg_match('/(\S+\s+?){1,50}/', $news_brief, $nb_fullwords);
echo $nb_fullwords[0];
}
echo ("
<a href='LINK'>[read more]</a></br></br></div>
</div>
<br>
<br>
");
?>
</html>
|