protected static function build_table($new_table, $primary_column)
{
$new_table = !stristr($new_table, DB_PREFIX) ? DB_PREFIX . $new_table : $new_table;
$result = NULL;
if (!db_exists($new_table)) {
$result = dbquery("CREATE TABLE " . $new_table . " (\n\t\t\t\t\t\t\t\t" . $primary_column . "_key MEDIUMINT(11) UNSIGNED NOT NULL AUTO_INCREMENT ,\n\t\t\t\t\t\t\t\t" . $primary_column . " MEDIUMINT(8) NOT NULL DEFAULT '0',\n\t\t\t\t\t\t\t\tPRIMARY KEY (" . $primary_column . "_key),\n\t\t\t\t\t\t\t\tKEY " . $primary_column . " (" . $primary_column . ")\n\t\t\t\t\t\t\t\t) ENGINE=MyISAM DEFAULT CHARSET=UTF8 COLLATE=utf8_unicode_ci");
}
return $result;
}