query("SELECT buyer_id FROM {$GLOBALS['PURCHASE_TABLE']} WHERE txn_id = '{$_GET[txn_id]}' LIMIT 1"); $info = mysql_fetch_array($query); $_GET['userid'] = $info['buyer_id']; } include "includes/functions.php"; ?> Your purchases"; if(listPurchases($_GET['userid']) == false) { echo "You haven't bought anything!"; } echo "
"; } include "listcatalog.php"; // list all the items available to download ?>