+ return (sqlAffectedRows() == 1);
+}
+
+// Insert data into pool and return its insert id
+function insertDataIntoPool ($data) {
+ // Construct SQL query
+ $sql = 'INSERT INTO `{?_MYSQL_PREFIX?}_pool (`' . implode('`,`', array_map('SQL_ESCAPE', array_keys($data))) . "`) VALUES ('" . implode("','", array_values($data)) . "')";
+
+ // Run the query
+ sqlQuery($sql, __FUNCTION__, __LINE__);
+
+ // Return insert id
+ return getSqlInsertId();