Solved

Good PEAR::MDB2 documentation

Posted on 2006-06-09
8
440 Views
Last Modified: 2013-12-12
Hi all,

I'm looking for a good documentation about the PEAR module MDB2.
I need :
- a complete list of the functions ;
- detailed description of each function ;
- a lot of examples.

I don't care of the format (HTML, PDF, CHM) ;D
0
Comment
Question by:Richard Coffre
  • 5
  • 3
8 Comments
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16883563
http://pear.php.net/manual/en/package.database.mdb2.php

Is the official dox. Is there more you need?
0
 
LVL 1

Author Comment

by:Richard Coffre
ID: 16883752
I found it when I downloaded the package, but it is just an introduction.
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16884266
Hmm. Ok. What more info do you need?

For example http://pear.php.net/manual/en/package.database.mdb2.intro-query.php contains 2 good examples on the Query.

http://oss.backendmedia.com/MDB2 also looks useful.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Author Comment

by:Richard Coffre
ID: 16886454
For example, I think that the doc it is a little bit light when it describes the use of queryAll and default options.

E.g. ,  I used the following request with native Mysql lib :

$select  = "SELECT rplcats.WCATA,  cat_name, category_description , WTYPC, WLIMA, cat_ID ";
      $select .= "FROM rplcata, rplcats, wp_categories ";
      $select .= "WHERE rplcata.WCATA = rplcats.WCATA ";
      $select .= "AND rplcata.WCATA = wp_categories.category_nicename ";
      $select .= "AND rplcats.WLANG = 'FRA' ";
      $select .= "ORDER BY WPRIO";

When I read to use queryAll with the mode $mdb2->setFetchMode(MDB2_FETCHMODE_ASSOC);  I realize that the indexes are in lowercase instead of what it is exactly written in the query.
So far i use, e.g., $ligne['WCATA'] but now it is $ligne['wcata'].

I do not find why, I have to do so !!!
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16892287
From what I can see there are some settings related to setting/alterning the case of the columns.

$this->db->options['portability'] & MDB2_PORTABILITY_FIX_CASE

and

$this->db->options['field_case'] == CASE_LOWER

You can set the field_case option to the DB to CASE_LOWER or CASE_UPPER

See MDB2.php Line 1057 (// $Id: MDB2.php,v 1.216 2006/06/11 14:17:42 lsmith Exp $)

0
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 125 total points
ID: 16892293
From what I know of PEAR, the best way to get the documentation is to build your own using the PEARDocumentor. As part of the PEAR standard, the source code must contain specifically structured comments to allow an external application to build the documentation.

MDB2 is no different in that regard. Take a look at the source to see some of the comments. It is very clearly commented.
0
 
LVL 1

Author Comment

by:Richard Coffre
ID: 16903258
I created the doc using PHPDocumentor.

Thanks a lot.
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16903279
Excellent.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question