Hosting de Calidad
  • Inicio
  • Precios y servicios
  • F.a.q y ayudas
  • Realizar pedido
  • Webs alojadas
  • Quienes somos
  • Foro HyD
  • Contacto

    Zona Dominios

    Entrar
    registro de dominios


    Zona Hosting

    Entrar
    alojamiento web


    5 Métodos de Pago
    Tarjeta de crédito
    Domiciliación
    Transferencia
    Soporte Epagado
    Soporte Paypal

    Liberalización .es

    Ver mas
    dominios .es


  •  
     
     
    pg_field_name

    pg_field_name

    (PHP 4 >= 4_2_0)

    pg_field_name __ Returns the name of a field

    Description

    string pg_field_name ( resource result, int field_number)

    pg_field_name() returns the name of the field occupying the given field_number in the given PostgreSQL result resource_ Field numbering starts from 0_

    Ejemplo 1_ Getting informations about fields

    <?php
        $dbconn = pg_connect("dbname=publisher") or die("Could not connect");
    
        $res = pg_query($dbconn, "select * from authors where author = 'Orwell'");
        $i = pg_num_fields($res);
        for ($j = 0; $j < $i; $j++) {
            echo "column $j\n";
            $fieldname = pg_field_name($res, $j);
            echo "fieldname: $fieldname\n";
            echo "printed length: "_pg_field_prtlen($res, $fieldname)_" characters\n";
            echo "storage length: "_pg_field_size($res, $j)_" bytes\n";
            echo "field type: "_pg_field_type($res, $j)_" \n\n";
    }
    ?>

    The above example would produce the following output:

    column 0
    fieldname: author
    printed length: 6 characters
    storage length: _1 bytes
    field type: varchar 
    
    column 1
    fieldname: year
    printed length: 4 characters
    storage length: 2 bytes
    field type: int2 
    
    column 2
    fieldname: title
    printed length: 24 characters
    storage length: _1 bytes
    field type: varchar

    Nota: This function used to be called pg_fieldname()_

    See also pg_field_num()_

     
       



    registro de dominios | alojamiento web | hosting por publicidad

       

     

    Manual de linux Manual de apache Manual de php Manual de mysql Manual de SQL Manual del Plesk Como funciona Paypal Manual de html