Time Management Results 2

app_token = “bmendgdbur8vh76xfhredr6irdc”;

$queries = array(
array(
‘fid’ => ’26’,
‘ev’ => ‘ex’,
‘cri’ => $id)
);

//Run Query to get Record ID of the record we’re going to edit
$results = $quickbase->do_query($queries, ”, ”,’3′);
$recordID = (string) $results[0]->table->records->record[0]->f[0][0];

//Build Record data to be sent
$recordData = array(
array(‘fid’ => ’28’, ‘value’ => $_POST[‘question1’]),
array(‘fid’ => ’29’, ‘value’ => $_POST[‘question2’]),
array(‘fid’ => ’30’, ‘value’ => $_POST[‘question3’])
);

//Update record in QuickBase
$results = $quickbase->edit_record($recordID, $recordData);

//Redirect
header(‘Location: https://exectechweb.com/action-steps-options?id=’ . $id);
?>