I'm making for my homework little bot for my own forum. Bot have to read latest post at topic, take answer from database and post answer.
I wanted to do it using PHP PDO (and maybe something more), but I'm reading here at forum that the best to use Submit_Post function. But I don't understand how does it work and I can't find FULLY examples (wiki isn't enough). I'm not master of php
Could anyone help me how to do that?
Is any function to "get latest post"?
Or maybe don't fight with functions and just use mySql (I'm quite good in that)?
Maybe you've got any other ideas how to do it the easiest way?