Yo tengo un problema al intentar cambiar los privilegios de un usuario desde un formulario, me da el siguiente error
You have an error in your SQL syntax near '))' at line 1
la tabla que utilizo para ingresar los privilegios es esta
CREATE TABLE pro_pmembersu (
id int(5) unsigned zerofill NOT NULL default '00000',
user_type tinyint(3) unsigned NOT NULL default '0',
enddate datetime NOT NULL default '0000-00-00 00:00:00',
UNIQUE KEY id (id)
) TYPE=MyISAM;
y la tabla normal donde estan los usuarios es esta aunque es mas larga
CREATE TABLE pro_membersu (
id smallint(5) unsigned zerofill NOT NULL auto_increment,
fname varchar(16) NOT NULL default '',
lname varchar(30) NOT NULL default '',
password varchar(16) NOT NULL default '',
birthday date NOT NULL default '0000-00-00',
gender tinyint(3) unsigned NOT NULL default '0',
purposes tinyint(3) unsigned NOT NULL default '0',
country tinyint(3) unsigned NOT NULL default '0',
email varchar(64) NOT NULL default '',
url varchar(64) NOT NULL default '',
icq int(10) unsigned NOT NULL default '0',
aim varchar(16) NOT NULL default '',
phone varchar(20) NOT NULL default '',
city varchar(32) NOT NULL default '',
marstat tinyint(3) unsigned NOT NULL default '0',
child tinyint(3) unsigned NOT NULL default '0',
height tinyint(3) unsigned NOT NULL default '0',
weight tinyint(3) unsigned NOT NULL default '0',
hcolor tinyint(3) unsigned NOT NULL default '0',
ecolor tinyint(3) unsigned NOT NULL default '0',
etnicity tinyint(3) unsigned NOT NULL default '0',
religion tinyint(3) unsigned NOT NULL default '0',
smoke tinyint(3) unsigned NOT NULL default '0',
drink tinyint(3) unsigned NOT NULL default '0',
education tinyint(3) unsigned NOT NULL default '0',
job varchar(30) NOT NULL default '',
hobby tinytext NOT NULL,
descr text NOT NULL,
pideal text NOT NULL,
sgender tinyint(3) unsigned NOT NULL default '0',
setnicity tinyint(3) unsigned NOT NULL default '0',
sreligion tinyint(3) unsigned NOT NULL default '0',
agef tinyint(3) unsigned NOT NULL default '0',
aget tinyint(3) unsigned NOT NULL default '0',
heightf tinyint(3) unsigned NOT NULL default '0',
heightt tinyint(3) unsigned NOT NULL default '0',
weightf tinyint(3) unsigned NOT NULL default '0',
weightt tinyint(3) unsigned NOT NULL default '0',
hdyfu tinyint(3) unsigned NOT NULL default '0',
pic1 varchar(24) NOT NULL default '',
pic2 varchar(24) NOT NULL default '',
pic3 varchar(24) NOT NULL default '',
horo tinyint(3) unsigned NOT NULL default '0',
regdate datetime NOT NULL default '0000-00-00 00:00:00',
editdate datetime NOT NULL default '0000-00-00 00:00:00',
ip int(10) unsigned NOT NULL default '0',
status tinyint(3) unsigned NOT NULL default '0',
req tinyint(3) unsigned NOT NULL default '0',
UNIQUE KEY id (id),
FULLTEXT KEY fname (fname)
) TYPE=MyISAM;
pero el error me lo da al ingresar los privilegios del usuario en la primera tabla |