MyBB Community Forums

Full Version: Tables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It would be nice if all the database table references were constants so that it would be easier to integrate myBB into other services.

eg.

define ('USERS_TABLE','user');

$db->query('SELECT something FROM ' . USERS_TABLE . ' WHERE blah = blah');
This isn't planned at the moment, but thats not saying it wont be in a future version.

In RC4 table prefixes have recently just been added to the code, meaning everything would have to be changed once again.
Integration wouldn't be that easy anyways. In order to integrate that easily the database tables would have to have the same field names.