Forum und email

ifx_fieldtypes

(No version information available, might be only in CVS)

ifx_fieldtypes — Gibt eine Liste der Informix SQL Felder zurück

Beschreibung

array ifx_fieldtypes ( int $result_id )

Gibt für das Abfrageergebnis result_id ein assoziatives Array zurück mit den Feldnamen als Schlüssel und den SQL Feldtypen als Daten. Bei einem Fehler wird FALSE zurückgegeben.

Example#1 Feldnamen und SQL Feldtypen

<?php
$types 
ifx_fieldtypes ($resultid);
if (! isset (
$types)) {
  
/* ... error ... */
}
foreach (
$types as $fname => $val) {
    echo 
"$fname:\t type = $val\n";
}
?>