Ahhh^
I should have known that!
Thanks Marco.
----
PHP Code:
$posthreadid = $vbulletin->db->query_first("
SELECT threadid
FROM " . TABLE_PREFIX . "thread
WHERE pollid = '".$pollida."'
");
$checkpost = $vbulletin->db->query_read("
SELECT username
FROM " . TABLE_PREFIX . "post
WHERE threadid = ".$posthreadid['threadid']."
");
while ($posts = $vbulletin->db->fetch_array($checkpost))
{
if ($posts['username'] != $vbulletin->userinfo['username'])
{
standard_error(fetch_error('bs_postfirst'));
}
}
The array is perfect. But how would I go about checking each result to $vbulletin->userinfo['username'] ?
I thought the above code would work.