I foudn the error Xenon.
This line needs to be in there as well.
$getfirst=$DB_site->query_first("SELECT postid,post.userid,dateline,user.username FROM post LEFT JOIN user USING(userid) WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
because when u look at ur new code at this line
!strstr(strtoupper($message),strtoupper($getfirst['username']))) {
$getfirst has no where to look for. So i put that code above and it worked.
Is this right though or is there an easier better what of doing it?
|