FlaskBB
A lightweight forum software in Flask
Member
Joined:
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
  • a
  • b
  • c
  1. four
  2. five
  3. six
  • d
  • e
  • f

deleted

del

Member
Joined:
Posts: 2

leave a reply here


anything else?

Administrator
avatar
Joined:
Posts: 139

leave a reply here


Cheers! 🍻

Member
Joined:
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()