2011-05-23, 09:32 AM
I'm working on a plugin to use on "Who Posted" area (i.e. Who posted popup box). I'm using $mybb->input['uid'] to fetch posts (with links) in front of the Username (who posted in that thread). But with a lot of efforts its returning 0.
The query is;
Its returning uid=0
The query is;
$query = $db->query ("
SELECT pid,tid
FROM ".TABLE_PREFIX."posts
WHERE visible='1' AND tid='".$mybb->input['tid']."' AND uid='".$mybb->input['uid']."'
ORDER BY dateline DESC
LIMIT 0,5");
Its returning uid=0