/
var
/
www
/
html
/
mogi
/
mod
/
videoaula
/
Upload File
HOME
<?php require_once('../../config.php'); require_once('../../lib/dml/moodle_database.php'); global $USER, $DB, $CFG; if(is_numeric($_GET['videoaulaid']) && $USER->id != 0){ $dbman = $DB->get_manager(); $table = new xmldb_table('videoaula_startat'); $videaulaid = (int) $_GET['videoaulaid']; if($dbman->table_exists($table)){ //select field echo $DB->get_field('videoaula_startat', 'startat', array('userid'=>$USER->id, 'videoaulaid'=>$videaulaid), $strictness=IGNORE_MISSING); }else{ echo "erro"; } }else{ echo "erro"; }