My first attempt at a module is for embedding widgets. Fields I need are, widget_id which is dynamically assigned),band_id(dynamically populated), widget_name(text), embed_code(textarea),widget_location(select), and widget_active(select)
Does the following look correct, specifically the widget_id? Thanks
Code
// jrWidgets
$tbl = "CREATE TABLE {$jamroom_db['jrWidgets']} (
jrWidgets_widget_id INT(7) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY),
jrWidgets_band_id INT(7) UNSIGNED NOT NULL,
jrWidgets_widget_name VARCHAR(40) NOT NULL DEFAULT '',
jrWidgets_embed_code text NOT NULL DEFAULT '',
jrWidgets_location INT(4) UNSIGNED NOT NULL DEFAULT '0',
jrWidget_active TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
)";