PYTHON

is this article helpful?
|
Python replacement for PHP's [ edit | history ]
import MySQLdb

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

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

  cur = db.cursor()

  return cur

PHP

PHP original manual for [ show | php.net ]