#!/usr/bin/python
import MySQLdb
print "Content-type:text/html\r\n\r\n"
# Open database connection
db = MySQLdb.connect("localhost","root","","" )
# prepare a cursor object using cursor() method
cursor = db.cursor()
# execute SQL query using execute() method.
cursor.execute("select * from admin_area")
# Fetch a single row using fetchone() method.
data = cursor.fetchall()
for row in data:
uname = row[1]
email = row[2]
print "Name ",uname,"
"
print "Website ",email,"