1
Coding / Re: Bonus points for Topic Starter
« on: November 03, 2006, 08:23:56 pm »
Well the problem is the bank calculates 2% DAILY not annual like a real bank.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
// Register them into the database.
db_query("
INSERT INTO {$db_prefix}members
(" . implode(', ', array_keys($regOptions['register_vars'])) . ")
VALUES (" . implode(', ', $regOptions['register_vars']) . ')', __FILE__, __LINE__);
$memberID = db_insert_id();
returns a statement that has nothing for the MONEY register_var. This causes a problem with the sql statement. To fix this and allow registration of new users add this to the line just before the //Register them intot he database. line:$regOptions['register_vars']['money']=0;