downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_error> <ifx_create_char
[edit] Last updated: Fri, 25 May 2012

view this page in

ifx_do

(PHP 4, PHP <=5.2.0)

ifx_do事前に準備された SQL 文を実行する

説明

bool ifx_do ( resource $result_id )

事前に準備されたクエリを実行し、カーソルをオープンします。

エラーの際に、result_id を解放しないでください。

select 文でない場合に、ifx_affected_rows() に数を設定します。 これは、ifx_affected_rows() で取得可能です。

パラメータ

result_id

result_id は、 ifx_query() あるいは ifx_prepare() が返す有効な結果 ID です (select 型のクエリのみです!)。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

参考

例1 ifx_do() の例

<?php
$conn 
fx_connect"db""user""password" );
$result ifx_prepare("SELECT customer_num, company FROM customer"$conn);
ifx_do($result);
?>

参考



add a note add a note User Contributed Notes ifx_do
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites