PDA

View Full Version : print_chooser_row Problem.


Tuk4
01-06-2007, 02:06 PM
Hey guys, using 3.6.4 Version. And im trying to add to Users field selecting row.

Now added 2 Hooks:

Hook: useradmin_edit_column1
Added: print_chooser_row('Select Group', 'user[groupid]', 'groups', $user['groupid']);

Hook: userdata_start
Added: $this->validfields['groupid'] = array(TYPE_INT, REQ_NO);

Now when im going to add user - he's using the following sql cmd.
SELECT title, groupsid FROM groups WHERE groupsid....

i get this error because its not the fields i have in my DB, and i have no itention of changing them either, for the reason that i have a whole system running on it, and it will take me ages.
NOW.. my question is how can i select the field he'll choose from.. and update only Groupid on users table..

Im out of ideas..
thanks for the help, appriciated.

noppid
01-06-2007, 02:31 PM
Is it groupid or groupsid as you have in your query?

Tuk4
01-06-2007, 03:07 PM
in my query i have it as groupid

Tuk4
01-12-2007, 10:19 AM
anyone knows the sulotion of this problem? or its not possible... please let me know. thansk