= $points) { // Update points when there are enougth points in jackpot SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_jackpot` SET `points`=`points`-%s WHERE `ok`='ok' LIMIT 1", array($points), __FUNCTION__, __LINE__); $ret = $jackpot - $points; } // END - if // Free memory SQL_FREERESULT($result); // Return the result return $ret; } // [EOF] ?>