Jamie Dubs - Comment #23,210

You are viewing a single comment's thread.

Kip
Kip

adding to what Biotic stated, I have once coded for php-fusion a post-merger.

I dont know how your sql runs, but this is the code i used to find the second to last existing post, hen you do a if author = the same then you update instead of insert in the sql.

$results = dbquery("SELECT * FROM “.DB_POSTS.” WHERE thread_id=‘“.$_GET[’thread_id’].“’ AND post_id = (select max(post_id) from fusion_posts where thread_id=’”.$GET[‘thread_id’]."’ and post_id = (SELECT MAX FROM fusionposts))");

0

Hey! You must login or signup first!