How would I set st1 to a field value in the below code?
elseif ($state == 'read')
{
/$user_log_record = array(
"idnumber" => $_SESSION['idnumber'],
"action_done" => 'Read Tag Event',
"visited" => $st1,
"record_dt" => date('Y-m-d H:i')
);
$this->db->insert('tags_read',$user_log_record);
}
elseif ($state == 'edit')