FlaskBB
A lightweight forum software in Flask
Member
Joined: Sep 27 2017
Posts: 2

This is my test post

write content here Google

New HTC mobile

U11

cool?

def foo()👍
        pass

list here

  1. one
  2. two
  3. three
  4. a
  5. b
  6. c
  7. four
  8. five
  9. six
  10. d
  11. e
  12. f

deleted

del

Member
Joined: Sep 27 2017
Posts: 2

leave a reply here


anything else?

Administrator
avatar
Joined: Jul 09 2015
Posts: 122

leave a reply here

Member
Joined: Mar 25 2018
Posts: 2

Testing again:

#!/usr/bin/python
import MySQLdb

db = MySQLdb.connect(host="localhost",    # your host, usually localhost
                     user="john",         # your username
                     passwd="megajonhy",  # your password
                     db="jonhydb")        # name of the data base

# you must create a Cursor object. It will let
#  you execute all the queries you need
cur = db.cursor()

# Use all the SQL you like
cur.execute("SELECT * FROM YOUR_TABLE_NAME")

# print all the first cell of all the rows
for row in cur.fetchall():
    print row[0]

db.close()