...
while($row=DBfetch(DBselect('select actionid from actions where userid='.$userid)))
...
There's no userid column in actions table.
while($row=DBfetch(DBselect('select actionid from actions where userid='.$userid)))
...
There's no userid column in actions table.
Comment