Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

ifx_fieldtypes

(PHP 3 >= 3.0.3, PHP 4, PHP 5)

ifx_fieldtypes -- List of Informix SQL fields

Description

array ifx_fieldtypes ( resource result_id )

Returns an associative array with fieldnames as key and the SQL fieldtypes as data for query with result_id. Returns FALSE on error.

Пример 1. Fieldnames and SQL fieldtypes

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



add a note add a note User Contributed Notes
ifx_fieldtypes
lord_edd at hotmail dot com
30-Apr-2002 06:46
Alternativly i found you can always do it like this using the foreach() loop...

    $types = @ifx_fieldtypes($resultid);
    if (isset($types))
    {
      foreach($types as $field_name => $data_type)
      {
         echo "{$field_name} {$data_type}";
      }
    }

ifx_free_blob> <ifx_fieldproperties
Last updated: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571