News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

How can I create a thread from the MySQL Command line?

Started by gergy008, August 26, 2011, 11:02:29 AM

Previous topic - Next topic

gergy008

What is the SQL needed to create a new thread, I would like to intergrate this into my java program so I can create threads in a board for specific things.

For example, A thread by the user Gergy008, what would I need to change and where can I get the code?

Thanks,
Gergy

P.S How could I delete threads the same way too?

ascaland

To be honest I think you should have a look at the createPost() function to get an idea how posts and new topics are entered into SMF. Once you figure this out, it should be fairly easy to figure out how to delete topics/posts.

Advertisement: