* -------------------------------------------------------------------- *
* Kurzbeschreibung : Willkommensseite des Sponsorenbereiches *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
}
// Load some data
-$result = SQL_QUERY_ESC("SELECT
- `id`,`gender`,`surname`,`family`, (`points_amount` - `points_used`) AS `points`
+$result = sqlQueryEscaped('SELECT
+ `id`,
+ `sex`,
+ `surname`,
+ `family`,
+ (`points_amount` - `points_used`) AS `points`
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`
WHERE
`id`=%s
-LIMIT 1",
+LIMIT 1',
array(
bigintval(getSession('sponsor_id'))
), __FILE__, __LINE__);
// Fetch data
-$content = SQL_FETCHARRAY($result);
+$content = sqlFetchArray($result);
// Free memory
-SQL_FREERESULT($result);
+sqlFreeResult($result);
// Load main template
-$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', true, $content);
+$GLOBALS['sponsor_output'] = loadTemplate('sponsor_welcome', TRUE, $content);
// [EOF]
?>