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

fbsql field type function syntax tag tutorial 2013 Donate at flattr Flattr this





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

Php fbsql field type () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.6, PHP 5)

fbsql_field_type --  Get the type of the specified field in a result

Syntax

string fbsql_field_type ( resource result [, int field_offset] )

fbsql_field_type() is similar to the fbsql_field_name() function. The arguments are identical, but the field type is returned instead. The field type will be one of "int", "real", "string", "blob", and others as detailed in the FrontBase documentation.

Example 1. fbsql_field_type() example

<?php

fbsql_connect
("localhost", "_SYSTEM", "");
fbsql_select_db("wisconsin");
$result = fbsql_query("SELECT * FROM onek;");
$fields = fbsql_num_fields($result);
$rows   = fbsql_num_rows($result);
$i = 0;
$table = fbsql_field_table($result, $i);
echo
"Your '" . $table . "' table has " . $fields . " fields and " . $rows . " records <br />";
echo
"The table has the following fields <br />";
while (
$i < $fields) {
    
$type  = fbsql_field_type($result, $i);
    
$name  = fbsql_field_name($result, $i);
    
$len   = fbsql_field_len($result, $i);
    
$flags = fbsql_field_flags($result, $i);
    echo
$type . " " . $name . " " . $len . " " . $flags . "<br />";
    
$i++;
}
fbsql_close();

?>

Php fbsql field type Function syntax tag

fbsql field type 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 field type 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