Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

fbsql list fields function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php fbsql list fields () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.6, PHP 5)

fbsql_list_fields -- List FrontBase result fields

Syntax

resource fbsql_list_fields ( string database_name, string table_name [, resource link_identifier] )

fbsql_list_fields() retrieves information about the given tablename. Arguments are the database name and the table name. A result pointer is returned which can be used with fbsql_field_flags(), fbsql_field_len(), fbsql_field_name(), and fbsql_field_type().

A result identifier is a positive integer. The function returns FALSE if an error occurs. A string describing the error will be placed in $phperrmsg, and unless the function was called as @fbsql() then this error string will also be printed out.

Example 1. fbsql_list_fields() example

<?php
$link
= fbsql_connect('localhost', 'myname', 'secret');

$fields = fbsql_list_fields("database1", "table1", $link);
$columns = fbsql_num_fields($fields);

for (
$i = 0; $i < $columns; $i++) {
    echo
fbsql_field_name($fields, $i) . "\n";;
}
?>

The above example will output:

field1
field2
field3
...

Php fbsql list fields Function syntax tag

fbsql list fields php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php fbsql list fields syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online