Source for file dbase.php
Documentation is available at dbase.php 
/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */  
// +----------------------------------------------------------------------+  
// +----------------------------------------------------------------------+  
// | Copyright (c) 1997-2004 The PHP Group                                |  
// +----------------------------------------------------------------------+  
// | This source file is subject to version 2.02 of the PHP license,      |  
// | that is bundled with this package in the file LICENSE, and is        |  
// | available at through the world-wide-web at                           |  
// | http://www.php.net/license/2_02.txt.                                 |  
// | If you did not receive a copy of the PHP license and are unable to   |  
// | obtain it through the world-wide-web, please send a note to          |  
// | license@php.net so we can mail you a copy immediately.               |  
// +----------------------------------------------------------------------+  
// | Author: Tomas V.V.Cox <cox@idecnet.com>                              |  
// | Maintainer: Daniel Convissor <danielc@php.net>                       |  
// +----------------------------------------------------------------------+  
// $Id: dbase.php,v 1.19 2004/03/05 01:46:53 danielc Exp $  
//  You have to compile your PHP with the --enable-dbase option  
require_once 'DB/common.php';   
 * Database independent query interface definition for PHP's dbase  
 * @version  $Id: dbase.php,v 1.19 2004/03/05 01:46:53 danielc Exp $  
 * @author   Stig Bakken <ssb@php.net>  
    function connect($dsninfo, $persistent = false )  
        $conn  =  @dbase_open ($dsninfo['database'], 0 );   
    function &query($query = null )  
        // emulate result resources  
     * Fetch a row and insert the data into an existing array.  
     * Formating of the array and the data therein are configurable.  
     * See DB_result::fetchInto() for more information.  
     * @param resource $result    query result identifier  
     * @param array    $arr       (reference) array where data from the row  
     * @param int      $fetchmode how the resulting array should be indexed  
     * @param int      $rownum    the row number to fetch  
     * @return mixed DB_OK on success, null when end of result set is  
     * @see DB_result::fetchInto()  
    function fetchInto ($result, &$arr, $fetchmode, $rownum=null )  
            $rownum =  $this->res_row[$result]++;   
            $arr =  @dbase_get_record_with_names ($this->connection, $rownum);   
            $arr =  @dbase_get_record ($this->connection, $rownum);   
            $this->_rtrimArrayValues ($arr);   
            $this->_convertNullArrayValuesToEmpty ($arr);   
     * Format input so it can be safely used in a query  
     * @param mixed $in  data to be quoted  
     * @return mixed Submitted variable's type = returned value:  
     *                + null = the string <samp>NULL</samp>  
     *                + boolean = <samp>T</samp> if true or  
     *                  <samp>F</samp> if false.  Use the <kbd>Logical</kbd>  
     *                + integer or double = the unquoted number  
     *                + other (including strings and numeric strings) =  
     *                  the data with single quotes escaped by preceeding  
     *                  single quotes then the whole string is encapsulated  
 
 
        
		    
 
		    Documentation generated on Mon, 11 Mar 2019 10:14:51 -0400 by  phpDocumentor 1.4.4. PEAR Logo Copyright ©  PHP Group 2004.
	        
       |