Help Search Campus Map Directories Webmail Home Alumnae Academics Admission Athletics Student Life Offices & Services Library & Technology News & Events About the College Navigation Bar
MHC Home Using the Document Interface
TopNext Page

Internal Database Variables

There are several internal variables that are automatically defined once a database has been read by either the .DBARRAY or .DBHASH command.

These variables are overwritten every time one of these commands is invoked, so it may be necessary to save them into a user-defined variable if more than one database file is being read within a page.

Variables
db_cols The number of columns in a database array, or the number of keys in a hash (associative array).
db_rows The number of rows in a database.
db_id A unique identifier for this database file for this session
db_type Either "array" or "hash", depending on how the database was read
db_err Last database access error message. Not currently used.

 

----------------------------------------
Top | Next Page

Home | Directories | Web Email | Calendar | Campus Map | Search | Help

About the College | Admission | Academics | Student Life | Athletics
Offices & Services | Giving | News & Events | Alumnae | Library & Technology

Copyright © 2001 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Webmaster. Last modified on December 10, 2001.