ibase_prepare

(PHP 5, PHP 7)

ibase_preparePrepare a query for later binding of parameter placeholders and execution

Описание

resource ibase_prepare ( string $query )
resource ibase_prepare ( resource $link_identifier , string $query )
resource ibase_prepare ( resource $link_identifier , string $trans , string $query )

Prepare a query for later binding of parameter placeholders and execution (via ibase_execute()).

Список параметров

query

An InterBase query.

Возвращаемые значения

Returns a prepared query handle, or FALSE on error.

Коментарии

ex.

<?php
$query 
"SELECT * FROM EMPLOYEES";
$p_sql ibase_prepare($query);
$result ibase_execute($p_sql);
while(
$row ibase_fetch_object($result)){
echo 
$row['FIRSTNAME'];
}
2012-08-16 04:14:11
http://php5.kiev.ua/manual/ru/function.ibase-prepare.html
Автор:
<?php

/**
 * EDIT TO ABOVE: The above mentions "ibase_fetch_object". 
 * In that case if should be using the object operator.
 * Example below.
 */

$query "SELECT * FROM EMPLOYEES";
$p_sql ibase_prepare($query);
$result ibase_execute($p_sql);
while(
$row ibase_fetch_object($result)){
echo 
$row->FIRSTNAME;
}
2016-01-26 05:06:32
http://php5.kiev.ua/manual/ru/function.ibase-prepare.html

    Поддержать сайт на родительском проекте КГБ