In article <41**********************@dreader2.news.tiscali.nl >, "Polaris" <as*********@hotmail.com> wrote:
echo or print or whatever command you use with double quotes"text" instead
of single quotes 'text'.
I have already thought of this problem, but it was not it.
However, I have since done a LOT of digging and found a partial solution
which if solved would be ideal.
Current code:
while ($row = @mysql_fetch_array($result))
{
$FName = $row['FeatureName'];
if (in_array("Yes", $row))
{
$row = '<img src="tick.png" width="38" height="18">';
}
$AccountType1 = $row['Coll-1'];
$AccountType2 = $row['Coll-2'];
$AccountType3 = $row['Coll-3'];
$AccountType4 = $row['Coll-4'];
$display_entry .= "<tr class=\"BottomLine\">
<tdstyle=\"text-align:left;\"><B>$FName</B></td>
<td>$AccountType1</td>
<td>$AccountType2</td>
<td>$AccountType3</td>
etc...
So now as the array is being read, every time the word "Yes" is
encountered, it is replaced in Coll-1, Coll-2, Coll-3, Coll-4. The problem
is though that is is not 100% working. Instead of replacing the entire
string (which in this case is a URL for an image), it is just echoing "<"
(minus quotes). Playing about I find that it is only echoing the first
character of the string.
So I have a table that had a lot of Yes's replaced by < instead of the url
which would show that graphic.
Any suggestions?
Dariusz