33 lines
906 B
Plaintext
33 lines
906 B
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/include/include.jsp"%>
|
|
<%
|
|
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
|
|
String sql_ok = "update tbl_board set c_click = c_click + 1 where c_no = " + c_no;
|
|
stmt2.execute(sql_ok);
|
|
|
|
String sql1 = " select * from tbl_board where c_no = " + c_no;
|
|
ResultSet rst = stmt.executeQuery(sql1);
|
|
if (rst.next()) {
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title><%=rst.getString("c_title")%></title>
|
|
<script language=javascript>
|
|
resizeTo(600,440)
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<iframe width="100%" height="360px" src="https://www.youtube.com/embed/<%=rst.getString("c_content")%>?rel=0&cc_load_policy=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
</body>
|
|
</html>
|
|
|
|
<%
|
|
|
|
}
|
|
rst.close();
|
|
|
|
%>
|
|
<%@include file="/include/include_b.jsp"%>
|