September 2001
Intermediate to advanced
768 pages
32h 45m
English
resource odbc_prepare(resource conn, int query)
Prepares a SQL query.
Returns:
FALSE on error
Description:
Prepares a SQL statement for execution but doesn’t execute the statement. A result identifier is returned, which can be passed to odbc_execute(), which then executes the SQL statement.
Version:
Existing since version 3.0.6
Example:
$db = odbc_connect("DSN","user","pass");
$result = odbc_prepare($db,"SELECT * FROM Employees ORDER BY LastName");
odbc_execute($result);
|
Read now
Unlock full access