Hi
I am working on a site where some of the Recordsets are empty here is the coding I am working with
[code=php]
<td><?php if ($totalRows_Recordset1 == 0) { // Show if recordset empty ?>
<div id=”masterwrapper”>
<div id=”masterheader”><a href=”products.php?recordID=<?php echo $row_Recordset1[‘product_name’]; ?>”><?php echo $row_Recordset1[‘product_name’]; ?> </a></div>
<div id=”masterpicture”><?php echo $row_Recordset1[‘main_image’]; ?></div>
<div id=”masterdetails”><?php echo $row_Recordset1[‘packing_slip_desc’]; ?></div>
<div id=”masterbuynow”>
<form id=”form1″ name=”form1″ method=”post” action=”cart.php”>
$
<?php echo $row_Recordset1[‘price’]; ?>
</form>
</div>
</div>
<?php } // Show if recordset empty ?></td>
What I want is for nothing to show in the Master Wrapper if there is no record. Then I want it to say we apologize for an inconvenience this may have caused you but we do not have any of those products in stock. Please check back soon.
Any Help Is much appriciated