function.mysqli_connect

function.mysqli_connect

[code=python] ¶
import MySQLdb ¶

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

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

cur = db.cursor() ¶

return cur ¶

[/code]