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

odbc fetch into function syntax tag tutorial 2013 Donate at flattr Flattr this





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

Php odbc fetch into () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 3>= 3.0.6, PHP 4 , PHP 5)

odbc_fetch_into -- Fetch one result row into array

Syntax

int odbc_fetch_into ( resource result_id, array &result_array [, int rownumber] )

bool odbc_fetch_into ( resource result_id [, int rownumber, array &result_array] )

Returns the number of columns in the result; FALSE on error. result_array must be passed by reference, but it can be of any type since it will be converted to type array. The array will contain the column values starting at array index 0.

As of PHP 4.0.5 the result_array does not need to be passed by reference any longer.

As of PHP 4.0.6 the rownumber cannot be passed as a constant, but rather as a variable.

As of PHP 4.2.0 the result_array and rownumber have been swapped. This allows the rownumber to be a constant again. This change will also be the last one to this function.

Example 1. odbc_fetch_into() pre 4.0.6 example

<?php
$rc
= odbc_fetch_into($res_id, $my_array);
?>

or

<?php
$rc
= odbc_fetch_into($res_id, $row, $my_array);
       
$rc = odbc_fetch_into($res_id, 1, $my_array);
?>

Example 2. odbc_fetch_into() 4.0.6 example

<?php
$rc
= odbc_fetch_into($res_id, $my_array);
?>

or

<?php
$row
= 1;
$rc = odbc_fetch_into($res_id, $row, $my_array);
?>

Example 3. odbc_fetch_into() 4.2.0 example

<?php
$rc
= odbc_fetch_into($res_id, $my_array);
?>

or

<?php
$rc
= odbc_fetch_into($res_id, $my_array, 2);
?>

Php odbc fetch into Function syntax tag

odbc fetch into 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 odbc fetch into 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