Since my code deals with PM's I need to exclude myself from receiving a PM as I am the one making the new comment.
PHP Code:
$useri = $db->query_read("
SELECT * FROM " . TABLE_PREFIX . "threadcomment
WHERE threadid = $threadinfo[threadid]
");
Now what I am trying to do is this (I know this won't work but an example of what I need:
PHP Code:
$useri = $db->query_read("
SELECT * FROM " . TABLE_PREFIX . "threadcomment
WHERE threadid = $threadinfo[threadid]
IGNORE userid = $vbulletin->userinfo['userid']
");
I couldn't find anything to exclude my id, does anyone know how to do this?
Thanks