$position .= mysql_insert_id();
$sql = "UPDATE ".$this->table_name."
SET position = '".$position."'
WHERE id = '".mysql_insert_id()."'";
When i return $position i get two values 150 and 151. That is current row ID and previous or selected row ID. I just need the previous ROW ID.When i look into my DB i have two values 150151.
This is actually of parent child relationship.