# Empty row in database question

**URL:** <https://forum.kirupa.com/t/empty-row-in-database-question/233722>\
**Category:** Uncategorized\
**Created:** [July 26, 2007, 12:48pm UTC](https://forum.kirupa.com/t/empty-row-in-database-question/233722 "2007-07-26T12:48:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [July 26, 2007, 12:48pm UTC](https://forum.kirupa.com/t/empty-row-in-database-question/233722/1 "2007-07-26T12:48:00Z")

</div>

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:

```php

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.
