I need a little advice with something. I want a bit code that can display something depending on whether or not the row in the database is empty. If that makes any sense…I’ve written something like this at the moment:
if(empty = ($row_entry['img'])){
echo "<div id=\"img_entry\" align=\"center\"><a href=\"blog.php?id=$row_entry['id'];\"><img src=\"$row_entry['thumb'];\" /></a></div>";
}else{
echo "";
}
But I just get a blank page, so there is either something wrong with the code, or I’m going about it all wrong.
Any help would be great Thanks.