$result = SQL_QUERY_ESC("SELECT
`company`, `position`, `gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
`phone`, `fax`, `cell`, `email`, `url`, `tax_ident`,
- `status`, `sponsor_created`, `last_online`, `last_change`, `receive_warnings`,
+ `status`,
+ UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
+ UNIX_TIMESTAMP(`last_online`) AS `last_online`,
+ UNIX_TIMESTAMP(`last_change`) AS `last_change`,
+ `receive_warnings`,
`points_amount`, `points_used`, `remote_addr`, `warning_interval`, `refid`, `ref_count`
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
// Sponsor found so let's list all his referals
$result = SQL_QUERY_ESC("SELECT
`id`, `gender`, `surname`, `family`, `email`, `status`,
- `sponsor_created`, `last_online`, `points_amount`, `points_used`,
+ UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
+ UNIX_TIMESTAMP(`last_online`) AS `last_online`,
+ `points_amount`, `points_used`,
`remote_addr`, `ref_count`
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
// List all sponsors
$result_main = SQL_QUERY("SELECT
`id`, `gender`, `surname`, `family`, `email`, `status`,
- `sponsor_created`, `last_online`, `points_amount`, `points_used`, `remote_addr`
+ UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
+ UNIX_TIMESTAMP(`last_online`) AS `last_online`,
+ `points_amount`, `points_used`, `remote_addr`
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
ORDER BY