I'm trying to display a news item that has more than one parent so I have it set up with the id's of the parents (parentId - there are 7 possible parents and 5 parentId columsin the database) but when the script runs it only displays the news item for the first part of the ifelse block.
This is the code:
$catid = 3;
if($row['parentId'] == $catid)
{
echo $row['content'];
}
else if($row['parentId2'] == $catid) // It doesn't want to read from this part down
{
echo $row['contnet'];
}
else if($row['parentId3'] == $catid)
{
echo $row['contnet'];
}
else if($row['parentId4'] == $catid)
{
echo $row['contnet'];
}
else if($row['parentId5'] == $catid)
{
echo $row['contnet'];
}
Any Help greatly appreciated.
Iquil