v5:database:text
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
database:text [2015/10/14 04:45] – mnewnham | v5:database:text [2016/01/13 02:06] – ↷ Links adapted because of a move operation mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Plain Text ====== | ====== Plain Text ====== | ||
<WRAP alert> | <WRAP alert> | ||
- | This driver is broken in ADOdb version 5 when used with PHP version 5.3 and up and absent | + | This driver is broken in ADOdb version 5 when used with PHP version 5.3 and up. This is due to the fact that the **execute** method has a non-compliant 3rd argument to it. Absent |
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The '' | + | The '' |
------------------- | ------------------- | ||
<WRAP right box 400px> | <WRAP right box 400px> | ||
Line 19: | Line 19: | ||
This is a 2 dimensional array of data. Optionally, The first row may contain the column names. If column names are not defined in first row, they must be defined in the third argument $columnNames. | This is a 2 dimensional array of data. Optionally, The first row may contain the column names. If column names are not defined in first row, they must be defined in the third argument $columnNames. | ||
==== $dataTypes ==== | ==== $dataTypes ==== | ||
- | The optional parameter $dataTypes provides an array of [[dictionary: | + | The optional parameter $dataTypes provides an array of [[v5:dictionary: |
---------------------- | ---------------------- | ||
<WRAP right info 400px> | <WRAP right info 400px> | ||
Line 66: | Line 66: | ||
--------------------- | --------------------- | ||
<code php> | <code php> | ||
- | $rs = $db-> | + | $rs = $db-> |
/* | /* | ||
Line 83: | Line 83: | ||
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
- | $db = NewADOConnection(' | + | include ' |
+ | |||
+ | $data = | ||
+ | array(0=> | ||
+ | 1=> | ||
+ | 2=> | ||
+ | 3=> | ||
+ | 4=> | ||
+ | 5=> | ||
+ | ); | ||
+ | |||
+ | $cols = array(' | ||
+ | $metaTypes = array(' | ||
+ | |||
+ | $db = ADOnewConnection(' | ||
+ | |||
+ | |||
+ | $db-> | ||
+ | |||
+ | $sql = ' | ||
+ | |||
+ | $result = $db-> | ||
+ | |||
+ | while ($r = $result-> | ||
+ | print_r($r); | ||
</ | </ |
v5/database/text.txt · Last modified: 2020/01/13 13:17 by dregad