^ obviously you have to select the database used for MyBB forum to run the SQL queries.
can you post how the attachment code looks like on a message of converted MyBB forum
can you post how the attachment code looks like on a message of converted MyBB forum