September 2001
Intermediate to advanced
768 pages
32h 45m
English
resource odbc_exec(resource conn, string query)
Executes an ODBC query.
Returns:
Result identifier; FALSE on error
Description:
Executes the SQL statement contained inside the query string. The database to be queried is specified by the connection ID. This is different in functionality from odbc_execute(), which is used to execute multiple SQL statements.
Version:
Existing since version 3.0.6
Example:
$db = odbc_connect("DSN","user","pass");
$result = odbc_exec($db,"SELECT FirstName, LastName FROM Employees
ORDER BY LastName");
|
Read now
Unlock full access