Anyone see what I'm doing wrong here?
<?
if(time() - strtotime($adddate) <= 60*60*24*3)
{
echo '<img src="../images/new.gif" width="19" height="9" border="0">';
if ($catalogid = 7)
{
echo '<img src="../images/vid.gif" border="0">';
}
else
{
echo '';
}
}
else
{
echo '<img src="images/bullet_b.gif" width="11" height="9" border="0">';
}
if ($catalogid = 7)
{
echo '<img src="../images/vid.gif" border="0">';
}
else
{
echo '';
}
?>
Basically, if it's category 7 display vid.gif
The other code is, if it's new display new.gif
(so new and 7 = both)
new.gif displays fine,
When I upload this code, EVERYTHING gets vid.gif next to it.
Those things that are either new, or category 7 get two vid.gif's next to it.