Jump to content

Archived

This topic is now archived and is closed to further replies.

darkcarnival

need your advice on this

Recommended Posts

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 system

they 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)

Share this post


Link to post
Share on other sites
Show some code, this isn't my area, but other people could help, but you might want to give them something to go by.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.