$data = new visualize($db, $array, $regres, $begin, $end); $lines = count($array); } else { $array = array('all'); $data = new visualize($db, $array, $regres, $begin, $end); $lines = 1; } } else { $begin = 2003; $end = 2015; $regres = ''; $array = array('all'); $data = new visualize($db, $array, $regres, $begin, $end); $lines = 1; } $data->set_regres($regres); $data->set_cat_names(); $data->set_sql(); $data->set_year(); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="favicon.ico">