XKwXEEn1.txt - from flask import Flask,render_template,request,url_for import pymysql app = Flask_name db =

XKwXEEn1.txt - from flask import...

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)
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '15
  • American record labels, flask import Flask, @app, Costomer, return render_template('index.html

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture