PDA

View Full Version : delete move post via sql query


Ghostt
10-23-2012, 11:56 AM
I need this function for a programm. Can you please tell me how i can safely delete or move threads with sql without to have errors? just drop the table wouldnt work without errors

kh99
10-23-2012, 02:25 PM
If your program is including vbulletin code, then you would probably want to use a datamanager to delete a thread, or call the function delete_thread() that's in includes/functions_databuild.php around line 866. If you're not including vbulletin code then you might want to check out the delete_thread() function anyway to see everything that's done to delete a thread properly.