Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Database Workbench Pro 5.4.6
Extensibility Studio 3.0
Bytescout Spreadsheet SDK 3.0.0.1699
Magento 2 Admin Mobile App 1.0
Data Compare for MySQL 5.3
ODBC Driver for Zoho CRM 1.3
ODBC Driver for SugarCRM 1.3
Bytescout PDF To HTML SDK 9.0.0.3079
Azizi search engine script PHP 4.1.10
TaxiSoftr - Taxi Booking & Dispatch Software 1.0
VisualNEO for Windows 18.08.31
AnyMap JS Maps 8.4.0
ODBC Driver for MailChimp 1.3
OrgChart JS 3.0.7
AnyStock Stock and Financial JS Charts 8.4.0
Top Code
SQL to Java Code Generator 2.6.7
luxSQL 1.0
Ping Pong Game Code Script 1.1
Dansie Shopping Cart Mall Version
Ozone - Java OODBMS 1.2.1.beta
RabbitBB - Online Web Storage Project 20060513
PHP Choral Music Library 1.5
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Advanced MLM Software 1.2
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Excel Add-in for Bigcommerce 1.6
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
MySQL and accessing database results by field 
File ID: 66647






MySQL and accessing database results by field 
Download MySQL and accessing database results by field http://code.activestate.com/recipes/171463-mysql-and-accessing-database-results-by-field/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 3
Submit Rating:
MySQL and accessing database results by field  Description
Description: Accessing database results by field name rather than field number is easy. I prefer standard, stable library like MySQLdb rather than private solutions. Look at the following code.

License: Freeware

Related: Database

O/S:Windows

Downloads: 3



More Similar Code

I created this class and related functions because I like accessing database results by field name rather than field number. Accessing by field number has many problems: code is less readable, code gets broken when field positions change or fields are added or deleted from the query, etc.

This class should have little overhead if you are already using fetchall().
It wraps each result row in a ResultRow class which allows you...



MyPagination is a PHP/MySQL Class easily allows you to break up large result sets from a database query, and present it to the viewers in a more manageable way, and restrict database results without having to create complex pagination code.



A PHP5 PDO based database manager designed to work with simple generic schemas and any database supported by the PHP PDO extensions from version 5.2.3 onwards. It relies heavily on clean XHTML, CSS and AJAX techniques using the jQuery javascript...



SynApp2 builds feature-packed web applications and versatile PDF reports for MySQL and Oracle Database. The SynApp2 web application generator and MVC framework is written in PHP and JavaScript.



This PHP script is designed to query MySQL database programmatically by accessing a MySQL database and then composing SQL queries by calling functions that take parameters that define different aspects of the queries. Those functions of AutoDB...



Bobo PHP DB Class can establish a connection to a MySQL database server host, execute SQL queries and retrieve the results into arrays.

The identifier of the last inserted record can also be retrieved, and whether a given table exists...



DBConvert for Firebird and MySQL is a database migration tool which performs two-way conversion from Firebird databases to MySQL server and from MySQL to Firebird. The tool is also applicable for MySQL database migration to another MySQL database...



DBSync for Firebird and MySQL is a database synchronization tool which performs two-way conversion and synchronization from Firebird databases to MySQL server and from MySQL to Firebird. The tool is also applicable for MySQL database replication...



DBConvert for MySQL and DB2 is a database migration tool which performs two-way conversion from IBM DB2 to MySQL or from MySQL to IBM DB2. The tool is also applicable for MySQL database migration to another MySQL database and is quite adept at...



This class allows you to access the rows of a cursor by field name.

User Review for MySQL and accessing database results by field
- required fields
     

Please enter text on the image