I am having some trouble with getting this to work. I have an image gallery that is calling for the image link from the SQL database. Which works beautifully, however, if a user is only using 'pic1' and 'pic2' but 'pic3' and 'pic4' are empty in the database, I want to display a placeholder image instead. Any recommendations to do that?
<li><a class="ns-img" href="<?php echo $row_Recordset1['pic1']; ?>"></a></li>
<li><a class="ns-img" href="<?php echo $row_Recordset1['pic2']; ?>"></a></li>
<li><a class="ns-img" href="<?php echo $row_Recordset1['pic3']; ?>"></a></li>
<li><a class="ns-img" href="<?php echo $row_Recordset1['pic4']; ?>"></a></li>
$row_Recordset1['pic1']simply a path to an image?