MyBB Community Forums

Full Version: Simple PHP file to Update a post's message to include 2 breaks and a ban reason?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm working on a ban script and need a simple php file to go into that post, insert two <br />'s and the reason why that user was banned for that post. I don't know much MySQL at all so I come here for help.

I know to execute a query the PHP file has to have this:

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'updatepostban.php');

require_once "./global.php";

But I don't know what kind of query would be used to get what I want.

Any ideas?