session_start(); header( 'Content-Type: text/html;charset=utf-8' ); include('config/db.php'); include('config/funciones.php'); if (NivelAcceso($operativo)) { if ($_GET["consecutivo"]) { $conn=get_db_conn(); $consecutivo= cleanQuery($_GET['consecutivo']); /*$exp=substr(strrchr($consecutivo,"-"),1); $anoYear=substr($consecutivo,0,strlen($consecutivo)-strlen($exp)-1); $legis=substr($anoYear,0,strlen($anoYear)-4); $anoYear=substr($anoYear,-4);*/ $query="select * from comisiones where id='".$consecutivo."' limit 1"; mysql_query($query); $result = mysql_query($query); if($row = mysql_fetch_array($result)) { $comision= $row["comision"]; $tipo= $row["tipo"]; $presidente= $row["presidente"]; $secretaria= $row["secretaria"]; $legislatura= $row["legislatura"]; } $_SESSION["consecutivo"]=$consecutivo; ?>