Source for file connINC.php
Documentation is available at connINC.php
* connINC.php creates connection to database
* MySQL credentials are stored inside a function named conn()
* which allows up to 5 levels of access.
* The function conn() returns an active connection to the DB.
* @author Bill Newman <williamnewman@gmail.com>
* @version 1.0 2008/05/03
* @link http://www.newmanix.com/itc280/
* @license http://opensource.org/licenses/osl-3.0.php Open Software License ("OSL") v. 3.0
* Provides active connection to MySQL DB.
* One of 5 MySQL credentials are passed to the function
* as one of the following strings:
* Each level of access should include the capabilities of those below it.
* MySQL accounts must be setup for each level, with 'select' account only able
* to access db via 'select' command, and update able to 'select' and 'update' etc.
* Each credential set must exist in MySQL before it can be used.
* The function returns an active connection to the DB.
* If no data is entered into conn() function when it is called, the default access is 'admin'.
* If only one credential is available, place it in the 'admin' position, and no parameter is required.
* @param string $access represents level of access
* @return object Returns active connection to MySQL db.
* @todo error logging, or emailing admin not implemented
function conn($access=
"admin")
$myUserName =
"horsey01"; //your Zephir username
$myPassword =
"xxxxxx"; //your MySQL password
$myUserName =
"horsey01";
$myUserName =
"horsey01";
$myUserName =
"horsey01";
$myUserName =
"horsey01";
$myHostName =
"localhost";
Documentation generated on Sat, 03 May 2008 19:47:45 -0700 by phpDocumentor 1.4.1