It's easiest if you break it into the different steps. This is from memory so you will likely have to change some of this...First you would want to grab the info from the old db and table.connect to ticket dbselect ticket_id,location FROM ost_ticket(note this gets ALL results from ALL tickets)Connect to the new DB:find out what ost_form_entry ties to your ticket by looking it up. maybe something like:SELECT id FROM ost_form_entry WHERE object_id=$ticket_id LIMIT 1;and loop through each row adding the info for each ticket.INSERT INTO ost_form_entry_values VALUES ($formid, $fieldid,'$location','');I think that your $fieldid is 33 (which you provided).