Study Resources
Main Menu
by School
by Textbook
by Literature Title
Study Guides
Infographics
by Subject
Expert Tutors
Contributing
Main Menu
Earn Free Access
Upload Documents
Refer Your Friends
Earn Money
Become a Tutor
Apply for Scholarship
For Educators
Log in
Sign up
Find
Study Resources
by School
by Textbook
by Literature Title
Study Guides
Infographics
by Subject
Ask
Expert Tutors
You can ask
!
Earn by
Contributing
Earn Free Access
Learn More >
Upload Documents
Refer Your Friends
Earn Money
Become a Tutor
Apply for Scholarship
Are you an educator?
Log in
Sign up
University of British Columbia
COMPUTER S
COMPUTER S 2034
XKwXEEn1.txt - from flask import Flask,render_template,request,url_for import pymysql app = Flask_name db =
XKwXEEn1.txt - from flask import...
School
University of British Columbia
Course Title
COMPUTER S 2034
Uploaded By
WoodJack09
Pages
1
This
preview
shows page
1
out of
1
page.
from flask import Flask,render_template,request,url_for
import pymysql
app = Flask(__name__)
db = pymysql.connect('localhost','root','','imsDB')
@app.route('/')
def home():
cur = db.cursor()
cur.execute("select * from costomer")
costomer = cur.fetchall()
print(costomer)
You've reached the end of your free preview.
Want to read the whole page?
TERM
Fall '15
TAGS
American record labels,
flask import Flask,
@app,
Costomer,
return render_template('index.html
Share this link with a friend:
Copied!