Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Returns the number of columns in the query | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Returns the number of columns in the query

    ifx_num_fields

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

    ifx_num_fields — Returns the number of columns in the query

    Description

    int ifx_num_fields ( resource $result_id )

    After preparing or executing a query, this call gives you the number of columns in the query.

    Parameters

    result_id

    result_id is a valid resultid returned by ifx_query() or ifx_prepare() (select type queries only!).

    Return Values

    Returns the number of columns in query for result_id , or FALSE on errors.

    Examples

    Example #1 ifx_num_fields() Example

    <?php
    $conn_id 
    ifx_connect("db""user""password");
    $res_id ifx_query("select * from systables"$conn_id);
    echo 
    ifx_num_fields($res_id);
    ?>

    See Also


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin