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


  •  
     
     
    fbsql_fetch_field

    fbsql_fetch_field

    (PHP 4 >= 4_0_6)

    fbsql_fetch_field __  Get column information from a result and return as an object

    Description

    object fbsql_fetch_field ( resource result [, int field_offset])

    Returns an object containing field information_

    fbsql_fetch_field() can be used in order to obtain information about fields in a certain query result_ If the field offset isn't specified, the next field that wasn't yet retrieved by fbsql_fetch_field() is retrieved_

    The properties of the object are:

    • name _ column name

    • table _ name of the table the column belongs to

    • max_length _ maximum length of the column

    • not_null _ 1 if the column cannot be NULL

    • type _ the type of the column

    Ejemplo 1_ fbsql_fetch_field() example

    <?php 
    fbsql_connect ($host, $user, $password)
        or die ("Could not connect");
    $result = fbsql_db_query ("database", "select * from table")
        or die ("Query failed");
    # get column metadata
    $i = 0;
    while ($i < fbsql_num_fields ($result)) {
        echo "Information for column $i:<BR>\n";
        $meta = fbsql_fetch_field ($result);
        if (!$meta) {
            echo "No information available<BR>\n";
        }
        echo "<PRE>
    max_length:   $meta_>max_length
    name:         $meta_>name
    not_null:     $meta_>not_null
    table:        $meta_>table
    type:         $meta_>type
    </PRE>";
        $i++;
    }
    fbsql_free_result ($result);
    ?>

    See also fbsql_field_seek()_

     
       



    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