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

ibase execute function syntax tag tutorial 2013





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

Php ibase execute () function

Write your php code

 
<?php ?>

Php Result


Your code below



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

ibase_execute -- Execute a previously prepared query

Syntax

resource ibase_execute ( resource query [, mixed bind_arg [, mixed ...]] )

Execute a query prepared by ibase_prepare(). 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.

This is a lot more effective than using ibase_query() if you are repeating a same kind of query several times with only some parameters changing.

Example 1. ibase_execute() example

<?php
   
$dbh
= ibase_connect($host, $username, $password);

$updates = array(
    
1 => 'Eric',
    
5 => 'Filip',
    
7 => 'Larry'
);

$query = ibase_prepare($dbh, "UPDATE FOO SET BAR = ? WHERE BAZ = ?");

while (list(
$baz, $bar) = each($updates)) {
    
ibase_execute($query, $bar, $baz);
}

?>

Note: In PHP 5.0.0 and up, this function returns the number of rows affected by the query (if > 0 and applicable to the statement type). A query that succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent record) will return TRUE.

See also ibase_query().

Php ibase execute Function syntax tag

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