Forum und email
fbsql_db_query

fbsql_db_query

(PHP 4 >= 4.0.6, PHP 5)

fbsql_db_query -- Send a FrontBase query

Opis

resource fbsql_db_query ( string database, string query [, resource link_identifier] )

Selects a database and executes a query on it.

Parametry

database

The database to be selected.

query

The SQL query to be executed.

Notatka: The query string shall always end with a semicolon.

link_identifier

Identyfikator połączenia FrontBase zwrócony przez fbsql_connect() lub fbsql_pconnect().

Jeśli link jest opcjonalny i nie zostanie podany, funkcja spróbuje znaleźć otwarte połączenie do serwera FrontBase i jeśli takiego połączenia nie znajdzie, spróbuje utworzyć je tak jak fbsql_connect() byłaby wywołana bez argumentów

Zwracane wartości

Returns a positive FrontBase result identifier to the query result, or FALSE on error.