public function getColumnMeta($name = '')
    {

        $retval = array();
        $field = NULL;
        while ($field = mysqli_fetch_field($this->getResultId())) {
            $f = new stdClass();
            $f->name = $field->name;
            $f->type = $field->type;
            $f->default = $field->def;
            $f->maxLength = $field->max_length;
            $f->primaryKey = $field->primary_key;

            $retval[] = $f;
        }

        return $retval;
    }
public function getColumnMeta($name = '')
    {

        $retval = array();
        $field = NULL;
        while ($field = mysqli_fetch_field($this->getResultId())) {
            $f = new stdClass();
            $f->name = $field->name;
            $f->type = $field->type;
            $f->default = $field->def;
            $f->maxLength = $field->max_length;
            $f->primaryKey = $field->primary_key;

            $retval[] = $f;
        }

        return $retval;
    }
public function getColumnMeta ( $ name = '' ) { $ retval = array ( ) ; $ field = NULL ; while ( $ field = mysqli_fetch_field ( $ this -> getResultId ( ) ) ) { $ f = new stdClass ( ) ; $ f -> name = $ field -> name ; $ f -> type = $ field -> type ; $ f -> default = $ field -> def ; $ f -> maxLength = $ field -> max_length ; $ f -> primaryKey = $ field -> primary_key ; $ retval [ ] = $ f ; } return $ retval ; }
Returns metadata for a column or all columns in a result set

@return stdClass
Returns metadata for a column or all columns in a result set