darkcarnival Posted July 10, 2006 Share Posted July 10, 2006 I'm making a convertor for a board program of mine and currently im makinga convertor to move phpbb data over to my board.now im stuck on their post systemthey have everything in various tables and one item im trying to figure out is the topics.ater a topic has been transfered over to my topic table i want to delete it but phpbb place their topics in the same spot as the posts, so i have to do this without double posting the topics and without deleting the replies.anyone here got any ideas how i can go about this?a huge thanks to anyone who helps(finish this and im done with the convertor) Quote Link to comment https://forums.phpfreaks.com/topic/14186-need-your-advice-on-this/ Share on other sites More sharing options...
Ninjakreborn Posted July 10, 2006 Share Posted July 10, 2006 Show some code, this isn't my area, but other people could help, but you might want to give them something to go by. Quote Link to comment https://forums.phpfreaks.com/topic/14186-need-your-advice-on-this/#findComment-55625 Share on other sites More sharing options...
darkcarnival Posted July 11, 2006 Author Share Posted July 11, 2006 well theres too much to list here ;)guess i could show you what i think might work:[code]mysql_query("delete from ".$table_prefix."posts where topic_id='$row[topic_id]' and post_id < '$row[post_id]'") or die("Could not delete topics from phpbb.<br>". mysql_error());[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14186-need-your-advice-on-this/#findComment-55944 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.