로딩
요청 처리 중입니다...

[Dreamhack] baby-union

 [Dreamhack] baby-union

문제정보 주요 소스코드(app.py) cur = mysql.connection.cursor() cur.execute(f"SELECT * FROM users WHERE uid='{uid}' and upw='{upw}';") data = cur.fetchall() ㆍMySQL 데이터베이스에 쿼리를 실행하여 사용자 정보 확인 if data: return render_template("user.html", data=data) else: return render_template("index.html", data="Wrong!") return render_template("index.html", data="Fill the input box", pre=1) ㆍ만약 데이터가 존재하면 사용자 정보를 보여주는 템플릿을 렌더링 주요 소스코드(init.sql) INSERT INTO users (uid, upw, descr) values ('admin', 'apple', 'For admin'); INSER...

원문 링크 : [Dreamhack] baby-union