https://www.icyphoenix.com/viewtopic.php?f=26&t=1217&p=9389#p9389
-----------------------------------
Artie
Fri 02 Mar, 2007 18:11

Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
-----------------------------------
[quote user="felix968" post="9383"]here for you....  :? 

[highlight=#FFFFAA]$sql = "INSERT INTO ". ALBUM_RATE_TABLE[/highlight] ." (rate_pic_id, rate_user_id, rate_user_ip, rate_point)
					VALUES ('$pic_id', '$rate_user_id', '$rate_user_ip', '$rate_point')";

			if( !$result = $db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, 'Could not insert new rating', '', __LINE__, __FILE__, $sql);
			}
			$sql = "UPDATE " . USERS_TABLE . " SET user_posts = user_posts + 1 WHERE user_id = " . $userdata['user_id']; 
  if( !$result = $db->sql_query($sql) ) 
  { 
    message_die(GENERAL_ERROR, 'Could not update post count', '', __LINE__, __FILE__, $sql); 
  } 
		}
	}[/quote]
You added the code in the wrong location.

Look for: 
[highlight=#FFFFAA]
$sql = "INSERT INTO " . ALBUM_COMMENT_TABLE ."[/highlight]


