Hi All
I have this piece of code here, what it does it pulls out all the payment transaction from mysql to the page, I have a membership site setup and everything and every user has its own profile section, but this piece of code shows all the other users payment and records as well,
How Do I restrict each user to view their own payment based on a user? Can I do a quick hardcode?
[php]
<?php define("_VALID_PHP", true); require_once("init.php"); if (!$user->logged_in) redirect_to("index.php"); ?> <?php $transrow = $member->getPayments($user); ?>Here you can view all your payment transactions.
Viewing Transactions
# | Membership Title | Amount | Payment Date | Type of OS | Status | |
---|---|---|---|---|---|---|
<?php echo $core->msgAlert('Alert!You don\'t have any transactions yet...',false);?> | ||||||
<?php echo $row['title'];?> (<?php echo $row['pp'];?>) | <?php /*?><?php */?><?php echo $row['username'];?> | <?php echo $core->formatMoney($row['rate_amount']);?> | <?php echo $row['created'];?> |
[/php]