Home > PHP > Function > Firebird/InterBase > ibase_query()

ibase_query()

ibase_query - Execute a query on an InterBase database

Syntax

resource ibase_query (resource $link_identifier, string $query, int $bind_args)

Arguments

  • link_identifier - An InterBase link identifier. If omitted, the last opened link is assumed.
  • query - An InterBase query.
  • bind_args

Description

Performs a query on an InterBase database.

Version

PHP 4, 5

Return value

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.