<?php
/************************************************************************
- * MXChange v0.2.1 Start: 10/23/2009 *
- * =============== Last change: 10/23/2009 *
+ * Mailer v0.2.1-FINAL Start: 10/23/2009 *
+ * =================== Last change: 10/23/2009 *
* *
* -------------------------------------------------------------------- *
* File : jackpot_functions.php *
// Getter for jackpot points
function getJackpotPoints () {
// Default is zero
- $jackpot = '0.00000';
+ $data['points'] = '0.00000';
// Read them
$result = SQL_QUERY("SELECT `points` FROM `{?_MYSQL_PREFIX?}_jackpot` WHERE `ok`='ok' LIMIT 1", __FUNCTION__, __LINE__);
SQL_QUERY("INSERT INTO `{?_MYSQL_PREFIX?}_jackpot` (`ok`, `points`) VALUES ('ok','0.00000')", __FUNCTION__, __LINE__);
} else {
// Read the line
- list($jackpot) = SQL_FETCHROW($result);
+ $data = SQL_FETCHARRAY($result);
}
// Free result
SQL_FREERESULT($result);
// Return them
- return $jackpot;
+ return $data['points'];
}
// Adds points to the jackpot