return (SQL_AFFECTEDROWS() == 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
+ SQL_QUERY($sql, __FUNCTION__, __LINE__);
+
+ // Return insert id
+ return SQL_INSERT_ID();
+}
+
// [EOF]
?>