Location: PHPKode > projects > PHPauction > credits_account.php
<?#//v.3.0.0
#///////////////////////////////////////////////////////
#//  COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//
#///////////////////////////////////////////////////////

require('./includes/config.inc.php');

#// If user is not logged in redirect to login page
if(!isset($_SESSION["PHPAUCTION_LOGGED_IN"])) {
	Header("Location: user_login.php");
	exit;
}


#// Retrieve account info
$query = "SELECT * FROM PHPAUCTIONXL_accounts WHERE user='$_SESSION[PHPAUCTION_LOGGED_IN]' ORDER BY id DESC";
$res = mysql_query($query);
if(!$res) {
	MySQLError($query);
	exit;
} else {
	while($row = mysql_fetch_array($res)){
		$OPERATION_DATE[$row[id]] = $row[operation_date];
		$OPERATION_DESCR[$row[id]] = $row[description];
		$OPERATION_TYPE[$row[id]] = $row[operation_type];
		$OPERATION_AMOUNT[$row[id]] = $row[operation_amount];
		$OPERATION_AUCTION[$row[id]] = $row[auction];
		$BALANCE[$row[id]] = $row[account_balance];
	}
}


require("header.php");
include phpa_include("template_credits_account_php.html");
include "./footer.php";

?>
Return current item: PHPauction