Go to the source code of this file.
Functions | |
| PivotTableSQL (&$db, $tables, $rowfields, $colfield, $where=false, $aggfield=false, $sumlabel='Sum ', $aggfn='SUM', $showcount=true) | |
Variables | |
| print< pre > | $sql |
| $rs = $gDB->Execute($sql) | |
| $sql | |
| print< pre > | $sql |
| $rs = $gDB->Execute($sql) | |
|
||||||||||||||||||||||||||||||||||||||||
|
Latest version is available at http://php.weblogs.com Requires PHP4.01pl2 or later because it uses include_once Definition at line 34 of file pivottable.inc.php. |
|
|
Definition at line 168 of file pivottable.inc.php. |
|
|
Definition at line 122 of file pivottable.inc.php. |
|
|
Definition at line 167 of file pivottable.inc.php. |
|
|
Initial value: PivotTableSQL( $gDB, # adodb connection 'products p ,categories c ,suppliers s', # tables 'CompanyName,QuantityPerUnit', # row fields # column ranges array( ' 0 ' => 'UnitsInStock <= 0', "1 to 5" => '0 < UnitsInStock and UnitsInStock <= 5', "6 to 10" => '5 < UnitsInStock and UnitsInStock <= 10', "11 to 15" => '10 < UnitsInStock and UnitsInStock <= 15', "16+" =>'15 < UnitsInStock' ), ' p.CategoryID = c.CategoryID and s.SupplierID= p.SupplierID', # joins/where 'UnitsInStock', # sum this field 'Sum' # sum label prefix ) Definition at line 151 of file pivottable.inc.php. |
|
|
Definition at line 121 of file pivottable.inc.php. |
1.4.6