First result of googling (is this officially a verb now!?) "python mysql" - mysql-python.sourceforge.net - is a DBAPI 2.0 compliant interface, so .fetch() and .fetchall() on cursor objects...
Not really - Create a connection object, create a cursor, execute a query on the cursor, then iterate over the cursor object and you get the equiv of mysql_fetch_array
.fetch()
and.fetchall()
on cursor objects...mysql_*()
is outdated and should be used anymore. UseMySQLi
orPDO_MySQL
instead.