Location: PHPKode > scripts > Event Registration > event-registration/questions/evr_admin_questions-update.php
<?php

function evr_post_update_question(){
			
			global $wpdb;
			
			//$event_id = $_REQUEST['event_id'];
			(is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0";
            $event_name = $_REQUEST['event_name'];
			$question_text = $_REQUEST ['question'];
			$question_id = $_REQUEST ['question_id'];
			$question_type = $_REQUEST ['question_type'];
			$values = $_REQUEST ['values'];
			$required = $_REQUEST ['required'] ? 'Y' : 'N';
			
			$wpdb->query ( "UPDATE ".get_option('evr_question')." set `question_type` = '$question_type', `question` = '$question_text', " . " `response` = '$values', `required` = '$required' where id = $question_id " );
		
?>

<META HTTP-EQUIV="refresh" content="0;URL=admin.php?page=questions&action=new&event_id=<?php echo $event_id . "&event_name=" . $event_name;?>">

<?php 
}
?>
Return current item: Event Registration