no just add the linkidtable as i told ya
then in your script you find for example this parts..:
PHP Code:
//insert thread 1
$DB_site->query("INSERT INTO thread ....");
//insert thread 2
$DB_site->query("INSERT INTO thread ....");
you have to add one query and change the things a bit:
PHP Code:
//insert thread 1
$DB_site->query("INSERT INTO thread ....");
$thread1id=$DB_site->insert_id();
//insert thread 2 (add linkid and $thread1id as value
$DB_site->query("INSERT INTO thread ....");
$thread2id=$DB_site->insert_id();
$DB_site->query("UPDATE thread SET linkid=$thread2id WHERE threadid=$thread1id");