PHP 7.0.6 Released

ibase_prepare

(PHP 5, PHP 7)

ibase_preparePrepara uma query para execução posterior

Descrição

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

Prepara uma consulta para execução posterior. (via ibase_execute()).

Parâmetros

query

Uma query InterBase.

Valor Retornado

Retorna o manipulador da query preparada, ou FALSE em erro.

add a note add a note

User Contributed Notes 2 notes

up
1
Andrew Champ
3 months ago
<?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;
}
up
0
adamson dot ibus at gmail dot com
3 years ago
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'];
}
To Top