basically what i want to do is display a field (a photo) if another field has the value of 1 - or not show it if its 0
when the record is inserted into the db one of the form fields will be a simple 1/0 - so if i'm adding a record but not adding a photo with it i'll use 0 and vice versa
when i query the database to display results this is what i have now (stripped down version)
while ($row=mysql_fetch_assoc($query)){
echo("<br />" . $row['comments']. "<br /><img src='" . $row["photo"] . "' width=300 border=0 /> ");
an idea of where i go from here would be great :)