* @return int The next thread_id #.
*/
function getNextThreadID() {
- global $sys_database_type;
-
$result = db_query_params ('SELECT nextval($1)',
array ('forum_thread_seq')) ;
if (!$result || db_numrows($result) < 1) {
* @return boolean success.
*/
function removeUser($user_id) {
- global $SYS,$sys_database_type;
+ global $SYS;
if ($user_id==user_getid()) {
//users can remove themselves
}
/**
- * db_query() - Query the database, from a file.
+ * db_query_from_file() - Query the database, from a file.
*
* @param string File that contains the SQL statements.
* @param int How many rows do you want returned.