I want to know is it possible for me to replace the $text='PAYING,'WAITING' etc with gif images instead of text.
if ($row['hyip_status'] == 1)
{
$statuscolor = $colors['pay'];
$text = 'PAYING';
}
if ($row['hyip_status'] == 2)
{
$statuscolor = $colors['wait'];
$text = 'WAITING';
}
if ($row['hyip_status'] == 3)
{
$statuscolor = $colors['problem'];
$text = 'PROBLEM';
}
if ($row['hyip_status'] == 4)
{
$statuscolor = $colors['notpay'];
$text = 'NOT PAYING';
}
Here is the code with the images I want to replace with each one
{if $listing.hyip_status == 1}<img src="images/m_pay.gif" border=0 alt="Paying" title="Paying" align=absmiddle>{/if}
{if $listing.hyip_status == 2}<img src="images/m_wait.gif" border=0 alt="Waiting" title="Waiting" align=absmiddle>{/if}
{if $listing.hyip_status == 3}<img src="images/m_prob.gif" border=0 alt="Problem" title="Problem" align=absmiddle>{/if}
{if $listing.hyip_status == 4}<img src="images/m_npay.gif" border=0 alt="Not Paying" title="Not Paying" align=absmiddle>{/if}
Any help would be great thanks.