+1  A: 

It looks to me like you're darn close:

if ($rwp >= $total) {    
  echo '<button>Checkout</button>';  //Just put the code you want here
}   
else {
  echo "You do not have enought points to proceed to checkout <br />";
}

In your sample, these lines are in the while which will cause a problem. Just move them out to where you want this to display and you're on your way.

Steve
Thanks for the quick response, Steve. It worked!!
AdamMc
Yep, you're right. The checkout link appeared above the cart which was within the while loop which I have moved down below the cart contents. Once again, thanks very much Steve, much appreciated!
AdamMc
No problemo. Keep that accept rate high! :)
Steve
A: 
$str = '<tr class="even">
<td colspan="3" align="right"><b> TOTAL:<b></td>
<td align="right"><b>' . number_format ($total) . ' pts </b></td>
</tr>
</table>
<br />
<div align="center"><input type="submit" name="submit" value="Update" />
<input type="hidden" name="submitted"value="TRUE" />
</form><br /><br /></div>
<p><a href="browse_rewards.php"><img src="images/but_continue.png" /></a></p>
<p><a href="submit_cart.php"><img src="images/but_checkout.png" /></a></p>';
if($rwp >= $total) {
 $str .='<a href="submit_cart.php"><img src="images/but_checkout.png" /></a></p>';
}
else {
 $str .='<p>You donnot have enough points to buy</p>'; 
}   
echo $str;

Use the above code instead of the code bellow the following comment in your code

// products the footer, close the table, and the form.

KMK