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
2010-10-25 05:53:24