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

ibase query function syntax tag tutorial 2013





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

Php ibase query () function

Write your php code

 
<?php ?>

Php Result


Your code below



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

ibase_query -- Execute a query on an InterBase database

Syntax

resource ibase_query ( [resource link_identifier, string query [, int bind_args]] )

Performs a query on an InterBase database. If the query raises an error, returns FALSE. If it is successful and there is a (possibly empty) result set (such as with a SELECT query), returns a result identifier. If the query was successful and there were no results, returns TRUE.

Example 1. ibase_query() example

<?php

    $host
= 'localhost:/path/to/your.gdb';

    
$dbh = ibase_connect($host, $username, $password);
    
$stmt = 'SELECT * FROM tblname';

    
$sth = ibase_query($dbh, $stmt) or die(ibase_errmsg());

?>

Note: In PHP 5.0.0 and up, this function will return the number of rows affected by the query for INSERT, UPDATE and DELETE statements. In order to retain backward compatibility, it will return TRUE for these statements if the query succeeded without affecting any rows.

Note: If you get some error like "arithmetic exception, numeric overflow, or string truncation. Cannot transliterate character between character sets" (this occurs when you try use some character with accents) when using this and after ibase_query() you must set the character set (i.e. ISO8859_1 or your current character set).

See also ibase_errmsg(), ibase_fetch_row(), ibase_fetch_object(), and ibase_free_result().

Php ibase query Function syntax tag

ibase query 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 ibase query 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