[code=python] ¶
import My
SQLdb ¶

def mysqli_connect(host, user, password, dbname): ¶

db = MySQLdb.connect(host, user, password, dbname) ¶

cur = db.cursor() ¶

return cur ¶

[/code]