Hi everyone,
I am having an issue that has been bugging me all day. I might be making some minor error that I just have not been able point out.
In the code below, the first part of the if statement is what always prints. It's as if everything after the else is ignored.
Does anyone see any mistakes in my code? Thanks in advance!!!
$sql_links = "SELECT link_text, url, link_category, link_image FROM links WHERE link_category = '$row_cat[category]'";
$rows_links = $db->getAll($sql_links);
foreach ($rows_links as $row_links) {
if ($row_links[link_image] == 0) { print"<tr><td> </td><td><a href=\"$row_links[url]\">$row_links[link_text]</a></td><td></tr>";
} else { print"<tr><td><img src=\"$row_links[link_image]\" height=\"60\" width=\"60\"></td><td><a href=\"$row_links[url]\">$row_links[link_text]</a></td><td></tr>";
}
}