MyBB Community Forums

Full Version: Adding posts directly to SQL
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Thanks for the reply. I don't need it in a separate table. But don't I need to upload the posts/user/forum info somewhere so that it can run the script to do the inserts? I thought I might have to make a table for this so that it can run the script and put it into the posts table.
Well where is the information coming from in the first place...?? You don't necessarily have to put it in a table first, where's it being stored now...??
It's being stored in a file on my computer... please advise, thanks! Smile
Depending on how it's formatted in that file then, you just need to load that file, go through each line or something, build the array of data and pass it to the datahandler.
Thanks for the continued support!

Still looking for advice for the next step. The data is in an excel file. I have a list of 200....

1) Usernames
2) Thread Titles
3) Threads

So, you say that I need to build an "array" of data. How would you advise me to do this?
Write a script that loads the data and parses it... how much PHP do you actually know...??
Pages: 1 2