ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:actualtype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dictionary:actualtype [2015/08/27 02:06] – created mnewnhamv5:dictionary:actualtype [2021/01/18 03:45] (current) mnewnham
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 == See Also == == See Also ==
-[[dictionary:metatype|metaType()]]+[[v5:dictionary:metatype|metaType()]]
  
 == Syntax == == Syntax ==
Line 12: Line 12:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The method ''actualType()'' returns the database specific data type for a given [[dictionary:metaType]]. The returned values varies from one database to another. +The method ''actualType()'' returns the database specific data type for a given [[v5:dictionary:metatype]]. The returned values varies from one database to another. The function returns information about both standard and custom metatypes. 
 + 
 +A connection to a data dictionary object is required.
 ===== Usage ==== ===== Usage ====
 <code php> <code php>
Line 18: Line 20:
 * Example connection to MySQL database * Example connection to MySQL database
 */ */
 +$dict = NewDataDictionary($db);
  
-$t = $db->metaType('I4');+$t = $dict->actualType('I4');
  
-   +print $t; 
 + 
 +/* 
 + * Prints INTEGER 
 + */ 
 +</code>
v5/dictionary/actualtype.1440633975.txt.gz · Last modified: 2017/04/21 11:29 (external edit)