downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_fieldtypes> <ifx_fetch_row
Last updated: Fri, 30 Oct 2009

view this page in

ifx_fieldproperties

(PHP 4, PHP <=5.2.0)

ifx_fieldpropertiesGibt eine Liste mit den Feldeigenschaften zurück

Beschreibung

array ifx_fieldproperties ( int $result_id )

Gibt ein assoziatives Array für das mit result_id angegebene Abfrageergebnis zurück, mit den Feldnamen als Schlüssel und den SQL-Eigenschaften der Felder als Daten.

Die Informix SQL Eigenschaften jedes Feldes der Ergebnismenge werden als assoziatives Array zurückgegeben. Die Eigenschaften sind wie folgt codiert: "SQLTYPE;length;precision;scale;ISNULLABLE" mit SQLTYPE = der Informix Typ, wie etwa "SQLVCHAR" usw. und ISNULLABLE = "Y" oder "N".

Beispiel #1 Informix SQL Feldeigenschaften

<?php
$properties 
ifx_fieldproperties ($resultid);
if (! isset(
$properties)) {
  
/* ... Fehler ... */
}
foreach (
$properties as $fname => $val) {
    echo 
"$fname:\t property = $val\n";
}
?>



add a note add a note User Contributed Notes
ifx_fieldproperties
There are no user contributed notes for this page.

ifx_fieldtypes> <ifx_fetch_row
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites