';
//echo '$_SESSION' . var_dump($_SESSION) . '
';
//echo '$_POST' . var_dump($_POST) . '
';
?>
	Add Record
	
prepare($sql);
	$stmt->execute();
} catch (PDOException $e) {
	echo 'Have a big problem
';
	throw $e;
	echo "$e->getMessage()";
}
if ($stmt->rowCount() > 0) {
	// Data received
	// Begin Table
	$html_table = 'A8-3800 CLFS Server';
	// Table Header
	$html_table .= '| EDIT | SEQ | NAME | ';
	$html_table .= 'VERSION | ';
	if($cn){$html_table .= 'CONFIGURE | ';}
	if($bl){$html_table .= 'BUILD | ';}
	if($ns){$html_table .= 'INSTALL | ';}
	if($se){$html_table .= 'SETUP | ';}
	if($no){$html_table .= 'NOTES | ';}
	if($ur){$html_table .= 'URL | ';}
	$html_table .= 'DELETE | 
';
	// Table Footer
	$html_table .= '| EDIT | SEQ | NAME | ';
	$html_table .= 'VERSION | ';
	if($cn){$html_table .= 'CONFIGURE | ';}
	if($bl){$html_table .= 'BUILD | ';}
	if($ns){$html_table .= 'INSTALL | ';}
	if($se){$html_table .= 'SETUP | ';}
	if($no){$html_table .= 'NOTES | ';}
	if($ur){$html_table .= 'URL | ';}
	$html_table .= 'DELETE | 
';
	// Table Body
	$html_table .= '';
	// Table Rows
	while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
		$rowid  = $row['id'];
		$rowseq = $row['seq'];
		$rownm  = $row['name'];
		$rowver = $row['version'];
		if($cn) {
			$rowcfg = nl2br(str_replace(' ', ' ', $row['configure']));
		}
		if($bl) {
			$rowbld = nl2br(str_replace(' ', ' ', $row['build']));
		}
		if($ns) {
			$rownst = nl2br(str_replace(' ', ' ', $row['install']));
		}
		if($se) {
			$rowset = nl2br(str_replace(' ', ' ', $row['setup']));
		}
		if($no) {
			$rownot = nl2br(str_replace(' ', ' ', $row['notes']));
		}
		if($ur) {
			$rowurl = nl2br(str_replace(' ', ' ', $row['url']));
		}
		$html_table .= '';
		$html_table .= "| Edit | ";
		$html_table .= ''.$rowseq.' | ';
		$html_table .= ''.($rownm).' | ';
		$html_table .= ''.($rowver).' | ';
		if($cn){$html_table .= ''.($rowcfg).' | ';}
		if($bl){$html_table .= ''.($rowbld).' | ';}
		if($ns){$html_table .= ''.($rownst).' | ';}
		if($se){$html_table .= ''.($rowset).' | ';}
		if($no){$html_table .= ''.($rownot).' | ';}
		if($ur){$html_table .= ''.($rowurl).' | ';}
		$html_table .= "Delete | ";
		$html_table .= '
';
	}
	// End Table Body
	$html_table .= '';
	// End Table
	$html_table .= '
';
	//Output Table
	echo $html_table;
} else {
	// No Data received
	echo 'No data found!
';
}
?>