Playing Music\n\n"); $audio_file_url = utf8_encode($relative_stim_path); //get the stimulus_id for this stim based on the location returned $sql_audio_stim = sprintf("select stimulus_id from stimulus where location='%s'",$relative_stim_path); mysql_select_db($database_subject,$subject); $audio_stim = mysql_query($sql_audio_stim, $subject) or die(mysql_error()); $row_audio_stim = mysql_fetch_assoc($audio_stim); $_SESSION['stimulus_id'] = $row_audio_stim['stimulus_id']; //replaced unsupported present_stimulus with present_stimuli S.T. June 10, 2010 //present_stimulus($audio_file_url); present_stimuli(NULL,$_SESSION['stimulus_id']); } else { include('htmlhead_name_mesg_formhead.php'); include('display_form_fields.php'); } ?>