Hi there,
Thanks for the tip - it's not working though - I've put it in here:
if (mysql_num_rows($result) > 0)
{
// echo 'rows found';
while($row=mysql_fetch_assoc($result))
{
// print_r($row);
echo '<div class="newsitem"><div class="h2" align=left>' . date("d F Y", $row['date']) . ' - ' . $row['title'] . '</div>';
$htmlText = $row[info];
$htmlText = htmlentities($htmlText, ENT_NOQUOTES);
$htmlText = str_replace(array('<', '>'), array('<', '>'), $htmlText);
$htmlText = preg_replace('/<(?=[^>]*(<|$))/', '<', $htmlText);
echo $htmltext;
if ($row[thumb] == 'NULL')
{
echo '<div class=imagethumb><img src="' . $row[thumb] . '"></div>';
echo '<div class="imagetext"><div class="body">' . $htmltext . '</P></div></div></div>';
}
else
{
echo '<P class="body">' . $htmltext . '</P></div>';
}
}
}
else
{
echo 'No Rows Found';
}
but now the $row[info] information isn't showing up atall - any ideas?
Cheers
Edd