评论

  1. 匿名
    6 月前
    2023-11-02 11:34:02

    <%@ page language=”java” import=”java.sql.*” pageEncoding=”UTF-8″%>

    <%
    Class.forName("com.mysql.jdbc.Driver");
    String url="jdbc:mysql://localhost:3306/stu?useSSL=false&useUnicode=true&characterEncoding=UTF-8";
    Connection dbCon = DriverManager.getConnection(url,"root","123456");
    Statement stmt=dbCon.createStatement();
    String sql = "INSERT INTO stuinfo(id,name) VALUES(1,'小林')";
    int i = stmt.executeUpdate(sql);
    out.println("成功添加"+ i + "行");

        stmt.close();
        dbCon.close(); 

    %>

  2. 匿名
    6 月前
    2023-11-02 11:56:25

    <%@ page language=”java” import=”java.sql.*” pageEncoding=”UTF-8″%>
    <%
    request.setCharacterEncoding(“UTF-8”);
    Class.forName(“com.mysql.jdbc.Driver”);
    String url=”jdbc:mysql://localhost:3306/stu?useSSL=false&useUnicode=true&characterEncoding=UTF-8″;
    Connection dbCon = DriverManager.getConnection(url,”root”,”123456″);
    Statement stmt=dbCon.createStatement();
    String id=request.getParameter(“id”);
    String sql = “SELECT *FROM book WHERE id=?”;
    PreparedStatement ps=dbCon.prepareStatement(sql);
    ps.setString(1,id);
    int i = ps.executeUpdate();
    out.println(“成功”);

    stmt.close();
    dbCon.close(); 

    %>

  3. 匿名
    6 月前
    2023-11-02 11:56:43

    <%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>

    function validate(){
    if (loginForm.account.value!=”javaweb”){
    alert(“错误”);
    return;
    }if (loginForm.password.value!=”147258369″){
    alert(“错误”);
    return;
    }
    }

    欢迎登录学生管理系统

    请您输入账号:
    请您输入密码:

  4. 匿名
    6 月前
    2023-11-02 11:57:00

    <%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>

    请您输入书号查询书籍信息
    <form name=”loginForm” action=”bookinfo.jsp” method=”post”>
    请您输入书号:<input name=”id” type=”text”>
    <input type=”submit” value=”查询”>
    <input type=”reset” value=”重置”>

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇