`earning_userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`earning_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`earning_added` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-`earning_cancelled` TIMESTAMP NULL DEFAULT NULL,
+`earning_canceled` TIMESTAMP NULL DEFAULT NULL,
`earning_daily_amount` SMALLINT(7) NOT NULL DEFAULT 0,
`earning_current_amount` SMALLINT(7) NOT NULL DEFAULT 0,
`earning_points` FLOAT(20,5) NOT NULL DEFAULT 0.00000,
// Does the user cancel the earning?
if ($isActive == 'N') {
// Then update cancellation timestamp as well
- $moreSql = ', `earning_cancelled`=NOW()';
+ $moreSql = ', `earning_canceled`=NOW()';
} // END - if
// Update database record
$result2 = SQL_QUERY_ESC('SELECT
u.`earning_active`,
UNIX_TIMESTAMP(u.`earning_added`) AS `earning_added`,
- UNIX_TIMESTAMP(u.`earning_cancelled`) AS `earning_cancelled`,
+ UNIX_TIMESTAMP(u.`earning_canceled`) AS `earning_canceled`,
u.`earning_daily_amount`,
u.`earning_points`
FROM