hi, how do i do this IF statement, when the user clicks the Finish Shopping link. If there is nothing in the cart then a message will appear saying the cart is empty but if there is then they go onto the next screen, output.php?
<td width="24%" height="25"> <font face="verdana" size="1" color="black">
<?php echo $row["ManID"]; ?> </font> </td>
<td width="40%"><font face="verdana" size="1" color="black"> <?php echo $row["ItemName"]; ?>
</font></td>
<td width="12%" height="25"> <font face="verdana" size="1" color="black">
£ <?php echo number_format($row["itemRRP"], 2, ".", ","); ?> </font>
</td>
<td width="13%" height="25"> <font face="verdana" size="1" color="black">
<a href="cart.php?action=remove_item&id=<?php echo $row["itemId"]; ?>">Remove</a>
</font> </td>
</tr>
<?php
}
// Display the total
?>
<tr>
<td colspan="5"> <hr size="1" NOSHADE color="red"> </td>
</tr>
<tr>
<td colspan="3"> <font size="3"><a href="javascript:history.back(1)"><<---Carry
on Shopping </td>
<td colspan="2"> <font face="verdana" size="2" color="black"> <b>Total: £<?php echo sprintf("%1.2f", $totalCost); ?></b>
</font> </td>
</tr>
<tr>
<td colspan="3"><a href="output.php">Finish shopping</a></td>
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>
<?php
}
?>
<?php
mysql_free_result($Recordset1);
mysql_free_result($man);
?>
[/php}